Get Agent Run

Retrieves the current status and results of a specific agent run. Use the run id returned in data.id by Start Agent Run or the first event of a streaming run by Start Agent Run (Stream).

By default, the endpoint returns the run's current state immediately. Set returnImmediately=false to wait for the run to reach a terminal state. Requests that remain open can wait for up to 300 seconds. If the request times out before the run completes, the response returns the in-progress run and execution continues in the background. Call this endpoint again with the same run id to retrieve the latest status and results.

When the run completes, the first item in artifacts contains the primary response and may include text and structured data. Additional artifacts, when present, contain supplementary output.

For agents that support streaming, use Resume Agent Run Stream to follow the run in real time.

Path Params
string
required

The unique identifier of the agent.

string
required

The unique identifier of the run.

Query Params
boolean

When false, wait for the run to reach a terminal state, up to 300 seconds. Default true: return the current snapshot without blocking.

Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/vnd.api+json