Runs
A Run is an execution instance of the Agent Loop. All endpoints require Bearer Token (or API Key) authentication.
Create Run
Starts an Agent execution in the specified thread.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
route_id | string | No | Provider route ID, specifies model selection if provided |
persona_id | string | No | Persona ID, format persona_key@version, defaults if empty |
Response 201 Created
List Runs under a Thread
Query Parameters
| Parameter | Type | Description |
|---|---|---|
limit | int | Maximum number of items to return |
Response
Global Run List
Lists all Runs under the current organization.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
limit | int | Number of items per page |
before | string | cursor |
status | string | Status filter: running/completed/failed/cancelled |
Response
Get Run Details
Response
Cancel Run
Response
Submit Interactive Input
When a Run is in the waiting_for_input state, submit user interactive input (such as tool confirmation).
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
content | string | Yes | User input content, maximum 32KB |
Response
SSE Event Stream
Receive real-time events during Run execution via Server-Sent Events.
Request Headers
Query Parameters
| Parameter | Type | Description |
|---|---|---|
after_seq | int | Start after the specified sequence number (for reconnection) |
Event Format
Primary Event Types
| Event Type | Description |
|---|---|
run.started | Run started |
message.delta | Model output delta |
tool.call | Tool call |
tool.result | Tool result |
run.waiting_for_input | Waiting for user input |
run.completed | Run completed successfully |
run.failed | Run failed |
run.cancelled | Run cancelled |
For more details, see API & SSE Specification.
Retry (Retry the previous round of conversation)
Deletes the last Assistant message and recreates the Run.
Response β Same as Create Run.