Rensei docs

List typed session-ledger sessions for the authenticated organization.

Keyset-paginated index of admitted ledger sessions, newest first. Scoped to the authenticated organization and clipped to the calling credential project fence. Filters: projectId, graphId, phase. The response carries `nextCursor` only when more rows exist; pass it back verbatim as `cursor`. This is an index for recovering a sessionId - the canonical SessionRef, receipt bundle and event replay stay on the per-session routes.

GET
/api/cli/sessions

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Query Parameters

projectId?string
Length1 <= length <= 256
graphId?string
Length1 <= length <= 256
phase?string
Value in"admitted""queued""claimed""adapting""spawn_authorized""running""cancelling""completed""failed""stopped""cancelled""timed_out"
limit?integer
Range1 <= value <= 200
cursor?string
Length1 <= length <= 2048

Response Body

One page of ledger sessions.

application/json
  1. response
ledgerVersion*string
sessions*array<>
Itemsitems <= 200
nextCursor?
Example Request
curl -X GET 'https://app.rensei.ai/api/cli/sessions'
Example Response
{  "ledgerVersion": "rensei.session-ledger/v1alpha1",  "sessions": [    {      "sessionId": "string",      "graphId": "string",      "projectId": "string",      "phase": "admitted",      "mode": "autonomous",      "stateVersion": 1,      "attempt": 1,      "ingress": "string",      "semanticOperationId": "string",      "admissionReceiptId": "string",      "claimReceiptId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": {    "createdAt": "2019-08-24T14:15:22Z",    "sessionId": "string"  }}