brawsrdocsv0.6
API referenceOperations

Get one hop of session fork lineage

GET/v1/sessions/{session_id}/lineage

Returns the selected session, its optional parent edge, and one cursor-paged set of direct children. Expand child sessions with another request to render arbitrarily nested forks.

AuthorizationBearer <token>

In: header

Path Parameters

session_id*string
Match^sess_[0-9a-f]{16}([0-9a-f]{16})?$

Query Parameters

limit?integer

Maximum items to return. Defaults to 50.

Range1 <= value <= 100
Default50
cursor?string

Opaque signed cursor returned by the preceding page. It is scoped to the authenticated project, collection, session, filters, and order.

Lengthlength <= 2048

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

{  "session": {    "id": "string",    "cdp_url": "http://example.com",    "status": "active",    "display_label": "string",    "close_reason": "normal",    "attachable": true,    "created_at": "2019-08-24T14:15:22Z",    "expires_at": "2019-08-24T14:15:22Z",    "closed_at": "2019-08-24T14:15:22Z",    "head_checkpoint_id": "string",    "origin_checkpoint_id": "string",    "parent": {      "session_id": "string",      "checkpoint_id": "string",      "operation_id": "string",      "created_at": "2019-08-24T14:15:22Z"    }  },  "parent": {    "session_id": "string",    "checkpoint_id": "string",    "operation_id": "string",    "created_at": "2019-08-24T14:15:22Z"  },  "children": [    {      "session": {        "id": "string",        "cdp_url": "http://example.com",        "status": "active",        "display_label": "string",        "close_reason": "normal",        "attachable": true,        "created_at": "2019-08-24T14:15:22Z",        "expires_at": "2019-08-24T14:15:22Z",        "closed_at": "2019-08-24T14:15:22Z",        "head_checkpoint_id": "string",        "origin_checkpoint_id": "string",        "parent": {          "session_id": "string",          "checkpoint_id": "string",          "operation_id": "string",          "created_at": "2019-08-24T14:15:22Z"        }      },      "checkpoint_id": "string",      "operation_id": "string",      "ordinal": 0,      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}