Get Run State
GET /runs/{run_id}/stateThe graph’s own view: which node is next, how many visits, what it is waiting for.
Parameters
Section titled “Parameters”| Name | In | Type | Notes | |
|---|---|---|---|---|
run_id | path | string (uuid) | required | — |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | RunStateView |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”curl -X GET https://your-deployment.example.com/runs/{run_id}/state \ -H "Authorization: Bearer $COBRE_TOKEN"Response — RunStateView
Section titled “Response — RunStateView”| Field | Type | Notes | |
|---|---|---|---|
run_id | string (uuid) | required | — |
status | queued | running | suspended | succeeded | failed | timed_out | cancelled | required | — |
thread_id | string | required | — |
node | string | null | optional | — |
visits | integer | optional | Default 0. |
task | string | optional | Default "". |
internal_context | object | optional | — |
result | object | null | optional | — |
suspension | RunSuspensionView | null | optional | — |