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.
export OUTRUNNER=https://app.outrunner.sh
export OUTRUNNER_API_KEY=or_key_…
curl -H "Authorization: Bearer $OUTRUNNER_API_KEY" $OUTRUNNER/api/v1/meKeys
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.
| Credential | Made under | Acts as |
|---|---|---|
| Org key | Settings → Org → Developer (admins) | The admin who made it, in that org only |
| Personal key | Settings → Developer | You, in any org you're in (?org= picks one) |
| CLI token | outrunner login | You, 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": { "code": "conflict", "message": "Connect Claude to start a session on your Claude account.", "status": 409 } }| Code | Status |
|---|---|
invalid_request | 400 |
unauthorized | 401: no key, or one that's unknown, revoked or expired |
forbidden | 403 |
not_found | 404: also anything the key's maker can't see |
conflict | 409: the session or account isn't in a state to do that |
rate_limited | 429: wait Retry-After seconds |
upstream_unavailable | 502/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.
/modelsModels you can start a session on/projectsRepositories you can start sessions on/workspacesStart a session/workspacesList sessions/workspaces/{id}A session, and where its turn is/workspaces/{id}/messagesSend a message, with files or images/workspaces/{id}/streamIts events as they happen (SSE)/workspaces/{id}/waitWait for its turn to end/workspaces/{id}/runsIts runs: status, result, duration, tokens/workspaces/{id}/runs/{run_id}/cancelStop the run going on/workspaces/{id}/usageTokens spent, by run/workspaces/{id}/pull-requestsIts pull requests and their checks/workspaces/{id}/artifactsScreenshots and recordings it uploaded/workspaces/{id}/archiveSnapshot it and let its box go/workspaces/{id}Delete it for goodSomething unclear? Let us know ↗