Runs
10 endpoints under /v1/runs.
List runs
/v1/runsRequiresruns:read
Query parameters
ownerenumoptionalmeorgstatusstringoptional'open', 'terminal', or one run status.
kindenumoptionalarthurtask_workoutlineplacesubmissioncomposeroot_run_idstring (uuid)optional
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Get run
/v1/runs/{run_id}Requiresruns:read
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Stop the run and every open run under it.
/v1/runs/{run_id}/cancelRace-guarded: a run that finished before the write stays finished.
Requiresruns:write
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
List every model call the run made, in order, with the newest window block by block.
/v1/runs/{run_id}/contextFollow GET /runs/{run_id}/stream from here: each new call arrives as a stage="context" frame.
Requiresruns:read
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Return one model call's window, with its blocks' text when kept.
/v1/runs/{run_id}/context/{manifest_id}Requiresruns:read
Path parameters
run_idstring (uuid)requiredmanifest_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Return what an open run has written so far, per subject.
/v1/runs/{run_id}/live-bodiesFollow the run's stream from each body's cursor (attach contract in
:mod:domains.runs.live_body). A closed run has none: its subjects' own
records hold the result.
Requiresruns:read
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Answer the approval a run paused on (needs_input).
/v1/runs/{run_id}/resumeapprove starts the work it holds; decline cancels it as declined. The owner answers, or an org admin for someone else's run. A run not awaiting approval answers 409 run_not_awaiting_approval.
Requiresruns:write
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Request body
decisionenumrequiredOwner's answer to a run paused on approval (
POST /runs/{id}/resume).approvedecline
Failures return the error envelope; branch on error_code.
Stream the run's own detail (an Arthur turn's content parts and tool steps).
/v1/runs/{run_id}/streamThe first frame is connected with the run's current card, so a late client can draw it before any detail arrives. A finished run gets that frame plus the replay requested, then the stream closes.
Requiresruns:read
Path parameters
run_idstring (uuid)required
Query parameters
sincestringoptionalResume cursor: the last event id seen. '0-0' replays the retained history; '$' (default) is new frames only.
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Get run tree
/v1/runs/{run_id}/treeRequiresruns:read
Path parameters
run_idstring (uuid)required
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.
Stream a stage="run" frame for every lifecycle change of the caller's runs.
/v1/runs/liveCovers every run the caller owns, whatever started it (a view, Arthur, an API key, a schedule).
Requiresruns:read
Query parameters
sincestringoptionalResume cursor: the last event id seen. '0-0' replays the retained history; '$' (default) is new frames only.
Headers
X-Organization-IDstringoptionalX-Workspace-IDstringoptional
Failures return the error envelope; branch on error_code.