Skip to main content
Cancel a run

Authorizations

Authorization
string
header
required

Authorization: Bearer stefan_sk_... (API key — bills the API wallet) or stefan_oat_... (OAuth member token — bills your plan pool).

Path Parameters

runId
string
required

Response

Cancellation acknowledged.

object
string
run_id
string
chat
string
status
string
output
string | null

The latest assistant text, or null before there is any. It is the final answer only once status is completed.

structured_output
object | null

Parsed JSON of the final answer for runs started with output_config; null when not requested or not completed.

artifacts
object[]

Produced files with fresh ten-minute download grants. Match path to paths in the answer. Read the run again to renew links.

deliverables
object[]

Optional saved-file delivery, enabled per account. Text previews contain at most 16,000 characters per file and 48,000 total. Files over 1 MiB and binary files use download_url. Preview/unavailable entries name the retrieval fix; partial marks outputs of failed or cancelled runs.

turn_state
string | null
created_at
string<date-time> | null
started_at
string<date-time> | null
completed_at
string<date-time> | null
cancel_requested
boolean
last_error
string | null
error
object
project
string
user_message
string

Acceptance envelope only (msg_u_... id).

assistant_message
string

Acceptance envelope only (msg_a_... id).

status_url
string

Acceptance envelope only.

events_url
string

Acceptance envelope only.

cancel_url
string

Acceptance envelope only.

progress
object | null

The work the run has done, or null before it starts. A running run is working while last_activity_at keeps advancing; a long rewrite can run for an hour.

steered_into_run_id
string

This input steered the named active run. Its run_id addresses the same turn and result, not a separate billed turn.