List Thread Runs

Page chronological history from an anchor, or rank all Thread runs by a recorded metric.

GET/api/v1/threads/{thread_id}/runs

Page chronological history from an anchor, or rank all Thread runs by a recorded metric.

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

thread_id*Thread Id

Query Parameters

limit?Limit
Range1 <= value <= 100
Default50
cursor?string|null
anchor?|null
sort?|null
direction?Direction
Default"desc"

Value in

  • "asc"
  • "desc"

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/threads/string/runs"
{  "items": [    {      "agent_id": "string",      "agent_revision_id": "string",      "app_id": "string",      "attempts": 0,      "cost": "string",      "created_at": "2019-08-24T14:15:22Z",      "current_attempt_id": "string",      "id": "string",      "input_preview": {        "text": "string",        "truncated": true      },      "lineage": "root",      "max_attempts": 0,      "model_calls": 0,      "number": 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": "input",      "trigger_app_id": "string",      "unpriced_requests": 0,      "updated_at": "2019-08-24T14:15:22Z",      "version": 0,      "wait_reason": "approval",      "workspace_id": "string"    }  ],  "next_cursor": "string",  "previous_cursor": "string",  "total": 0}