Skip to main content
GET
Retrieve the current status and progress of a generation run. Use it to poll a run started by Generate a Workflow until it reaches a terminal status. Works both during and after the run. Requires the Workflow: Read permission in the workflow’s workspace.
Progress updates continuously. Polling every 3–10 seconds is plenty.

Path Parameters

string
required
The ID of the workflow whose run you want to inspect. This is the workflowId returned from Generate a Workflow.

Query Parameters

string
The specific run to inspect. Defaults to the workflow’s current (or most recent) run.

Response

string
required
The workflow ID.
string
required
The run ID.
string
required
The current run status. See Run statuses below.
number | null
required
Progress from 0 to 1 — the same progress you’d see in the Opus builder UI. Reaches 1.0 once finished, and may be null in the first seconds of a run.
string
required
Your prompt.
string
required
The run title.
string
required
How the run was started (e.g., headless_trigger).
boolean
required
Whether the generation session is still live.
string
required
ISO 8601 timestamp of when the run started.
string
required
ISO 8601 timestamp of the most recent activity on the run.
number
required
Time elapsed since the run started, in milliseconds.
object
required
The AI agents working on your run.
object[]
required
Every task the agents performed.
number
required
Total number of tasks across all agents.

Run statuses

Errors

Bad Request
workflowId is not a valid UUID.
Unauthorized
Missing, invalid, or expired API key, or the key’s user is no longer a member of the organization.
Forbidden
The key’s user lacks the Workflow: Read permission in the workflow’s workspace.
Not Found
No run found for this workflow, or an unknown runId was provided.