StarSling
API

Overview

HTTP endpoints for runs, jobs, logs, diagnostics, spend, pinned skills, and Disks

View Markdown

The StarSling control plane exposes an HTTP API for everything the platform knows about your CI: which runs and jobs executed, why one failed, where the wall-clock went, and what it all cost.

curl -H "Authorization: Bearer $TOKEN" \  "https://runners.starsling.dev/api/runs?org=acme&limit=5"

Prefer a terminal to an HTTP client? The sling CLI wraps these same endpoints, adding argument validation, readable tables, and a stable exit-code contract.

Base URL

All endpoints are served from a single origin:

https://runners.starsling.dev

Every path in this reference is relative to it, and every path is prefixed with /api.

Conventions

Two things hold across every endpoint:

  • Org scoping. Results are scoped to the orgs you belong to. Org-scoped endpoints take org as a required parameter (and often an optional repo). Naming an org you do not belong to returns 403; a run, job, or attempt id that belongs to an org you cannot see returns 404, not 403, so the API never confirms that an id exists elsewhere.
  • Money and time. Costs are US dollars in *_usd fields, and durations are seconds unless the field name says otherwise. runner_minutes remains the wire field name for compatibility. On new paid subscriptions it reports billed whole seconds divided by 60 — ceil(duration / 1s) / 60 per job — so it can be fractional. Existing paid subscriptions report whole-minute billing, max(1, ceil(duration / 60s)) per job, until migrated. Raw duration fields are unchanged.

Endpoint groups

Pinned skills

GET /api/skill/{name} returns the pinned starslingdev/skills commit, its GitHub codeload URL, and its SHA-256 digest. It requires bearer authentication plus the required org query parameter. The caller must belong to that GitHub organization, and the organization must be known to StarSling.

Today the only registered name is ci-speedup. Membership is checked before the skill lookup, so a non-member receives 403; an unknown skill returns 404 only after the caller passes the organization check. The pin itself is global rather than organization-specific.

Before you start

Two pages cover the behaviour shared by every endpoint. Reading them first saves working it out one 400 at a time:

On this page