Get Run Lineage

The run and its ancestors, nearest first, across fork origins.

GET/api/v1/runs/{run_id}/lineage

The run and its ancestors, nearest first, across fork origins.

Authorization

AuthorizationBearer <token>

A workspace API key (a13n_...)

In: header

Path Parameters

run_id*Run Id

Query Parameters

cursor?string|null
limit?Limit
Range1 <= value <= 50
Default50

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/string/lineage"
{  "items": [    {      "agent_id": "string",      "agent_revision_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": "input",      "updated_at": "2019-08-24T14:15:22Z",      "version": 0,      "wait_reason": "approval",      "workspace_id": "string"    }  ],  "next_cursor": "string"}