Rensei docs

Replay the ledger event channel for one admitted session.

Returns append-only ledger lifecycle events after the supplied cursor. The cursor is a tuple ({ledgerSeq, structuredSeq, terminalByteOffset}); it deliberately does not impose a single total order across database commits, harness events, and terminal bytes.

GET
/api/cli/sessions/{sessionId}/replay

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.

Path Parameters

sessionId*string

The session id, in EITHER namespace: the canonical session id returned at dispatch, or its 16-hex public session hash. Both resolve to the same ledger node inside the caller's organization.

Length1 <= length <= 256

Query Parameters

cursor?string

Response Body

Canonical replay page.

application/json
  1. response
ledgerVersion*string
session*
events*array<>
Itemsitems <= 10000
nextCursor*
Example Request
curl -X GET 'https://app.rensei.ai/api/cli/sessions/string/replay'
Example Response
{  "ledgerVersion": "rensei.session-ledger/v1alpha1",  "session": {    "contractVersion": "donmai.execution-cell/v1alpha1",    "sessionId": "string",    "admissionReceiptId": "string",    "claimReceiptId": "string",    "mode": "autonomous",    "capabilities": {      "watch": true,      "replay": true,      "cancel": true,      "takeControl": true    }  },  "events": [    {      "ledgerVersion": "rensei.session-ledger/v1alpha1",      "graphId": "string",      "sessionId": "string",      "channel": "ledger",      "cursor": {        "ledgerSeq": 0,        "structuredSeq": 0,        "terminalByteOffset": 0      },      "eventType": "string",      "observedAt": "2019-08-24T14:15:22Z",      "payload": null    }  ],  "nextCursor": {    "ledgerSeq": 0,    "structuredSeq": 0,    "terminalByteOffset": 0  }}