Create an agent run

Creates a new agent run

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
typestringRequired
The agent type to use for this agent run
inputstringRequired
The input prompt for the agent run
thread_idstringOptionalformat: "uuid"
Optional agent thread ID in which to execute the agent run

Response

agent run created within existing agent thread
objectstring
Object type identifier.
idstringformat: "uuid"
Unique identifier for the agent run.
created_atdatetime
Timestamp when the agent run record was created.
updated_atdatetime
Timestamp when the agent run record was last updated.
statusenum
Current lifecycle status of the agent run.
Allowed values:
started_atdatetime or null
Timestamp when the agent run started.
ended_atdatetime or null
Timestamp when the agent run finished.
stepslist of objects or null

Top-level execution steps for this run, filtered by run_id. Only included when requesting run details with step state.

Errors