API referenceRuns
List Runs
GET
/api/v1/runsAuthorizationBearer <token>
A workspace API key (a13n_...)
In: header
Query Parameters
text_query?|
All search terms must match one run's retained user/assistant text
agent_id?|null
session_id?|null
thread_id?|null
principal_id?|null
status?|null
created_after?|null
created_before?|null
limit?Limit
Range
1 <= value <= 100Default
50cursor?string|null
Header Parameters
X-Workspace-ID?|
The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/runs"{ "items": [ { "agent_id": "string", "agent_revision_id": "string", "app_id": "string", "attempts": 0, "created_at": "2019-08-24T14:15:22Z", "current_attempt_id": "string", "id": "string", "input_preview": { "text": "string", "truncated": true }, "lineage": "root", "max_attempts": 0, "parent_run_id": "string", "principal_id": "string", "sealed_at": "2019-08-24T14:15:22Z", "session_id": "string", "source_entry_id": "string", "started_at": "2019-08-24T14:15:22Z", "status": "accepted", "thread_id": "string", "trigger": "realtime", "trigger_app_id": "string", "updated_at": "2019-08-24T14:15:22Z", "version": 0, "wait_reason": "approval", "workspace_id": "string" } ], "next_cursor": "string"}