Developers

API overview.

Start sessions, follow them as they work, and read what they shipped, from a script, a CI job or another agent.

Everything the app does, over HTTP

Everything a person does with a session in the app, your code can do through the API: start a session on a repository, send it messages and images, stream what it does, wait for its turn to end, read its runs and pull requests, and pause, archive or delete it.

The API is JSON over HTTPS at https://app.outrunner.sh/api/v1, in snake_case. GET /api/v1/openapi.json describes it as OpenAPI 3.1.

Terminal
export OUTRUNNER=https://app.outrunner.sh
export OUTRUNNER_API_KEY=or_key_…

curl -H "Authorization: Bearer $OUTRUNNER_API_KEY" $OUTRUNNER/api/v1/me

Keys

Send a key with every call, as a Bearer token. Basic auth works too, with the key as the user name and no password (curl -u "$OUTRUNNER_API_KEY:"), so clients written for Cursor's API work unchanged.

A key acts with its maker's access in the org, never more: it sees the repositories they can read, and its sessions are theirs, on their GitHub identity, models and sandbox. A key is shown once, when it's made, and can be given an expiry and revoked at any time.

CredentialMade underActs as
Org keySettings → Org → Developer (admins)The admin who made it, in that org only
Personal keySettings → DeveloperYou, in any org you're in (?org= picks one)
CLI tokenoutrunner loginYou, as a personal key

Answers and errors

A list comes back a page at a time: { "data": [], "page": 1, "per_page": 20, "total": 42, "total_pages": 3, "has_more": true }. per_page is at most 100.

Every refusal comes in the same envelope, with a stable code and a sentence for a person, and a settings_url when there's somewhere to fix it.

Error
{ "error": { "code": "conflict", "message": "Connect Claude to start a session on your Claude account.", "status": 409 } }
CodeStatus
invalid_request400
unauthorized401: no key, or one that's unknown, revoked or expired
forbidden403
not_found404: also anything the key's maker can't see
conflict409: the session or account isn't in a state to do that
rate_limited429: wait Retry-After seconds
upstream_unavailable502/503: a session's box, GitHub or the database didn't answer

Each key may make 120 calls a minute and start 10 sessions a minute. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining.

Sessions at a glance

The calls most integrations use. Projects, secrets, skills, MCP servers, triage and automations have their own; openapi.json lists every one.

GET/modelsModels you can start a session on
GET/projectsRepositories you can start sessions on
POST/workspacesStart a session
GET/workspacesList sessions
GET/workspaces/{id}A session, and where its turn is
POST/workspaces/{id}/messagesSend a message, with files or images
GET/workspaces/{id}/streamIts events as they happen (SSE)
GET/workspaces/{id}/waitWait for its turn to end
GET/workspaces/{id}/runsIts runs: status, result, duration, tokens
POST/workspaces/{id}/runs/{run_id}/cancelStop the run going on
GET/workspaces/{id}/usageTokens spent, by run
GET/workspaces/{id}/pull-requestsIts pull requests and their checks
GET/workspaces/{id}/artifactsScreenshots and recordings it uploaded
POST/workspaces/{id}/archiveSnapshot it and let its box go
DELETE/workspaces/{id}Delete it for good

Something unclear? Let us know ↗