Ends the run and releases its sandbox. No body is read.
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.
The session's full id (execution_id).
Responses
202The session as GET reads it, status cancelled, or cancelling while the sandbox is still being released; it reads cancelled from then on.
The session id.
The org as the request's path named it.
The Project the console ran the session in.
paused is a resumable session parked between turns; needs_review finished without the proof it was asked for; cancelling appears only in the 202 answer to a cancel whose sandbox is still being released; GET reads cancelled once it is.
queuedallocatingrunningpausedinput_requiredneeds_reviewcompletedfailedcancellingcancelledexpiredclaude, codex or opencode.
The saved agent the session was started from, if any.
The agent's final answer for the last finished turn, in full.
2 fields
Uncached input plus cache writes plus output.
Every file the agent saved to /workspace/.rush/artifacts/. url downloads it with no
credential until url_expires_at, an hour after the read; read the session again for a
fresh link. GET …/artifacts/{name} with the key also downloads it.
4 item fields
A signed https link to the file.
The files the session was started or followed up with.
3 item fields
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, TOKEN_LIMIT_REACHED.
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, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.
409The session already finished (RUN_STATE_CONFLICT).
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.
503The runtime did not confirm the cancel (CANCELLATION_UNCONFIRMED).
The runtime did not confirm the cancel (CANCELLATION_UNCONFIRMED). Read the session, then retry.
A sentence for a person.
Stable machine code, e.g. AUTH_FAILED, NOT_FOUND, VALIDATION_ERROR, RATE_LIMITED, TOKEN_LIMIT_REACHED.
The machine code on routes that name it this way.