StarSling
APIJobs

Get a job's steps

One workflow job's attempts, each with its step list (sling jobs show). A job id is one attempt; this resolves it to the logical job (run_id, job_name) and returns every attempt with its steps. Authenticated; a job in another org 404s (opaque).

View Markdown
GET/api/jobs/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Session token from sling login.

In: header

Path Parameters

id*string

GitHub job id. A non-numeric id resolves to 404, not 422.

Length1 <= length

Query Parameters

org*string

GitHub organization login. Scopes the request to your membership.

Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/api/jobs/85933007091?org=acme"
{  "run_id": "28961231706",  "run_url": "https://github.com/acme/api/actions/runs/28961231706",  "job_name": "typecheck",  "attempts": [    {      "attempt_id": "att_85933007091.1",      "attempt": 1,      "status": "completed",      "conclusion": "failure",      "runner_id": "611593",      "label": "starsling-ubuntu-24.04-8",      "duration_ms": 89000,      "steps": [        {          "name": "Set up job",          "number": 1,          "status": "completed",          "conclusion": "success",          "duration_ms": 2000        },        {          "name": "Run bun run typecheck",          "number": 4,          "status": "completed",          "conclusion": "failure",          "duration_ms": 61000        }      ]    }  ]}