One status change per request. cancelled ends the run. paused parks
a resumable sandbox with its disk and memory; running wakes it. Both
answer 202 with an operation_id. stop_turn interrupts the turn in
progress and keeps the session. Any other field, or another status, is
400.
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.
The session's full id (execution_id).
Request body
cancelledpausedrunningstop_turnResponses
200The change took effect.
cancelledstop_turn_confirmed202A pause or resume was accepted and runs in the background.
400Malformed request.
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.
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 session cannot make this change now: it already finished, has no sandbox to pause or resume, has no turn to stop (NO_ACTIVE_TURN), or waking it would exceed the plan's concurrent runs (CONCURRENCY_LIMIT_REACHED).
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.
422stop_turn only: the runtime could not confirm the stop (STOP_TURN_UNCONFIRMED).
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.