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.
AuthorizationBearer <rsk_live_*>Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.
sessionId*stringThe 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.
1 <= length <= 256cursor?stringCanonical replay page.
application/json- response
ledgerVersion*stringsession*events*array<>items <= 10000nextCursor*curl -X GET 'https://app.rensei.ai/api/cli/sessions/string/replay'{ "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 }}Read a session ledger bundle or computed dispatch receipt.
Returns the canonical SessionRef and immutable admission receipt for ledger sessions, or a source-tagged computed dispatch receipt for non-ledger dispatched seats. Interactive sessions have no receipt.
Read the last N lines of a session's terminal output.
Renders the tail of an interactive session's PTY output server-side, without attaching or streaming, and without requiring the session host to be online. Output is served from the relay's retained snapshot plus the frames after it while the session's room is live, and from the session recording once it is not. The rendered lines are a derived projection of the terminal, not authoritative screen state; pass raw=1 for the exact encoded frames instead. Lines are PHYSICAL terminal rows, so one wrapped logical line counts as several. truncated=true means older output was dropped before rendering, and snapshotDegraded=true means the screen the lines continue could not be decoded, so they were rendered onto a blank grid. Reading a session recording requires a human user identity; API keys and OAuth-agent tokens can read a live tail only. The id may be the canonical session id or its 16-hex public session hash.