Skip to content
Beta. This surface may change before GA; breaking changes are dated in the changelog.

Runs

A Run is a single invocation of an agent — the unit you start, observe, and get output from. Create one with POST /v1/runs.

A run moves through a small set of states:

state Terminal? Meaning
pending no Accepted, not yet started.
active no Running (possibly waiting on input or a sub-task).
closed yes Finished successfully — output is populated.
failed yes Errored — see failureReason / failureCategory.
abandoned yes Cancelled.

For a caller-facing view, a run also exposes a derived status: queuedrunningsucceeded (or failed / canceled), plus input_required when it’s blocked waiting for a human response. This is what the stream’s terminal event and webhook payloads report.

A run’s messages, tasks, and artifacts are all addressable under /v1/runs/{runId}/… — see the API reference.