Rensei docs

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.

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

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

Response Body

Canonical ledger bundle or computed dispatch receipt.

application/json
  1. response

Canonical session receipt bundle. Session and admission receipt references are byte-equal.

ledgerVersion*string
session*
receipts*
admissionReceipt*
terminalReason?
contextSeries?
Example Request
curl -X GET 'https://app.rensei.ai/api/cli/sessions/string/receipt'
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    }  },  "receipts": {    "admissionReceiptId": "string",    "claimReceiptId": "string",    "adaptationReceiptId": "string",    "policyDecisionId": "string",    "budgetReservationId": "string"  },  "admissionReceipt": {    "contractVersion": "donmai.execution-cell/v1alpha1",    "receiptId": "string",    "requestId": "string",    "intentDigest": "string",    "operationalPayloadDigest": "string",    "resolverDecisions": [      {        "kind": "explicit",        "field": "string",        "selectedRef": "string",        "sourceRef": "string",        "reason": "string"      }    ],    "recordedAt": "2019-08-24T14:15:22Z",    "decision": "admitted",    "cell": {      "contractVersion": "donmai.execution-cell/v1alpha1",      "harness": {        "id": "string",        "version": "string"      },      "model": {        "id": "string",        "author": "string"      },      "endpoint": {        "id": "string",        "protocol": "string",        "operator": "string",        "revision": "string"      },      "authBinding": {        "id": "string",        "mechanism": "api_key",        "commercialMode": "usage_billed",        "authority": "string",        "bindingScope": "process",        "portability": "portable",        "delivery": "environment"      },      "placement": {        "id": "string",        "kind": "host",        "resolution": "exact"      },      "sessionMode": "autonomous",      "grantedCapabilities": [        {          "name": "string",          "parametersDigest": "string"        }      ],      "evidenceTier": "declared",      "compatibilityDigest": "string",      "runtimeInventoryDigest": "string"    }  },  "terminalReason": {    "code": "spawn_failed",    "message": "string",    "phase": "spawn",    "decidedBy": "runner",    "at": "2019-08-24T14:15:22Z"  },  "contextSeries": {    "markers": 1,    "compactions": 0,    "malformed": 0,    "maxUsedPercent": 0,    "meanUsedPercent": 0,    "maxInputTokens": 0,    "lastContextWindowSize": 1,    "harnesses": [      "string"    ],    "capped": true,    "costPerSessionDay": 0,    "cacheReadTokens": 0,    "cacheWriteTokens": 0  }}