Starts one agent run in a fresh sandbox and returns it at once with
202; follow it with GET …/events or the key's webhook. {project} =
_ runs without a repository; a Project handle runs in that Project's
repository with its connectors.
Started with an API key, the run uses Rush's models, metered on the key
creator's plan, unless account_id names one of the creator's own
Anthropic or OpenAI API-key accounts. A key may have max_concurrent runs
in progress (default 4); one more is 429 RATE_LIMITED.
Authenticate with an org API key or a signed-in session.
Path parameters
The org's slug or id. A caller with no role in the org gets 404.
A Project's handle (name) or id, resolved inside {org} — OR the
reserved sentinel _ meaning "no Project" (a direct-repo / repo-less
dispatch on POST; "no Project constraint, resolve by session id
alone" everywhere else). A real handle that doesn't match the
session's actual Project is 404.
Request body
{project} in the path, never in the body, picks the repository. With
{project} = _, agent is required.
claude, codex or opencode, optionally pinned to a CLI version: claude@2.1.291.
The task. At most 256 KiB.
A model id that GET /o/{org}/agents/available lists for this harness. Omitted: the harness default.
Reasoning effort; must be one the model's row lists.
noneminimallowmediumhighxhighmaxautofast where the model row lists it in modes. OpenCode has none.
standardfastheadlessinteractiveDefault "headless"resumable parks the sandbox with its disk and memory between turns, free while parked, for 7 idle days; ephemeral tears it down when the turn ends.
resumableephemeralDefault "resumable"Run on one of the caller's own Anthropic or OpenAI API-key accounts instead of Rush's models.
Branch to start from. Not with on_pr.
Continue on this open pull request's branch.
A JSON Schema the final answer must match; it comes back as
result.structured on /result, the done event and the webhook.
claude and codex only (422 FIELD_UNSUPPORTED_FOR_HARNESS otherwise).
The root is type: "object"; every object lists all its properties
in required (make one optional with type: [T, "null"]) and sets
additionalProperties: false; $ref stays inside the document; at
most 10 levels and 64 KiB. Anything else is 400 OUTPUT_SCHEMA_INVALID.
Responses
202The session, as created.
The session, as created. status is queued, allocating or running depending on admission.
cloudlocalThe harness.
paused is a resumable session parked between turns; needs_review finished without the proof it was asked for.
queuedallocatingrunningpausedinput_requiredneeds_reviewcompletedfailedcancelledexpiredephemeralresumablenullThe sandbox's own lifecycle (preparing, running, pausing, paused, resuming…), separate from status.
Increments on every resume.
2 fields
Uncached input plus cache writes plus output; null when the run reported none.
Files the caller attached when starting the run.
5 item fields
The first 6 artifacts; artifact_count has the total.
3 item fields
Bytes.
The saved agent the run started from.
3 fields
2 fields
What a saved-agent run actually ran with.
6 fields
The saved-agent configuration the run was pinned to.
What the sandbox loaded (harness version, plugins, hooks, commands), as the runtime reported it.
completepartialfailednull400The body is invalid: no prompt, no agent on a _ run, an unknown effort, speed or persistence, a malformed repository, or an output_schema outside the accepted subset (code OUTPUT_SCHEMA_INVALID).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
401No bearer, an unknown, revoked or expired one, or an API key on a route keys cannot call.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
402The plan does not cover this run: PLAN_REQUIRED (Rush's models need a paid plan), TOKEN_LIMIT_REACHED, COMPUTE_LIMIT_REACHED, WEEKLY_COMPUTE_LIMIT_REACHED, SPEND_CAP_REACHED or PAYMENT_METHOD_REQUIRED.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
403The repository is not in a GitHub App installation linked to the caller (INSTALLATION_NOT_LINKED, REPO_NOT_IN_INSTALLATION).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
404No such resource for the caller, including one that exists in an org the caller cannot see.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
409The Project's GitHub App installation is suspended, on_pr names a pull request that is not open, or a saved agent's catalog changed since it was reviewed (CATALOG_REFRESH_REQUIRED).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
413An attached payload is over its size limit.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
422A field the run cannot honor: an agent outside claude, codex, opencode (UNSUPPORTED_AGENT); a model the harness does not list in GET /o/{org}/agents/available (error_code MODEL_UNSUPPORTED); output_schema on opencode (FIELD_UNSUPPORTED_FOR_HARNESS); or a saved agent or sources on a key run (API_KEY_FIELD_UNSUPPORTED).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.
429The API key already has max_concurrent runs in progress (RATE_LIMITED).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, PLAN_REQUIRED.
The machine code on routes that name it this way.