Rensei docs

Read the append-only decision and handoff records for one program.

Keyset-paginated, newest first. Records carry the markdown a coordinator wrote and typed references to the issues, commits and sessions the record concerns. Addressed records (recipients) are the mailbox between sessions; addressedOnly (true/false or 1/0) narrows to them, and unreadOnlyFor to the unread mail of one reader: broadcasts plus records addressed to that reader or to one of its comma-separated roles, never mail addressed to another reader. Visibility matches the program itself: an invisible program is reported as not found rather than forbidden.

GET
/api/cli/programs/{programId}/records

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

programId*string
Match^prog_[0-9a-f]{32}$

Query Parameters

kind?string
Value in"decision""handoff""checkpoint""note"
addressedOnly?string
Value in"0""1""true""false"
unreadOnlyFor?string
Length1 <= length <= 256
roles?string
Lengthlength <= 1024
limit?integer
Range1 <= value <= 200
cursor?string
Length1 <= length <= 2048

Response Body

One page of program records, newest first.

application/json
  1. response
ledgerVersion*string
programVersion*string
programId*string
Match^prog_[0-9a-f]{32}$
records*array<>
Itemsitems <= 200
nextCursor?
Example Request
curl -X GET 'https://app.rensei.ai/api/cli/programs/string/records'
Example Response
{  "ledgerVersion": "rensei.session-ledger/v1alpha1",  "programVersion": "rensei.session-ledger.program/v1alpha1",  "programId": "string",  "records": [    {      "ledgerVersion": "rensei.session-ledger/v1alpha1",      "programVersion": "rensei.session-ledger.program/v1alpha1",      "programId": "string",      "recordId": "string",      "kind": "decision",      "title": "string",      "body": "string",      "refs": {        "issues": [          "string"        ],        "commits": [          "string"        ],        "sessions": [          "string"        ]      },      "recipients": [        {          "kind": "session",          "id": "string"        }      ],      "replyToRecordId": "string",      "supersedesRecordId": "string",      "author": {        "kind": "human",        "id": "string"      },      "idempotencyKey": "string",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "nextCursor": {    "createdAt": "2019-08-24T14:15:22Z",    "recordId": "string"  }}