Read the unread mailbox records for one reader session.
The reader's unread mail, newest first: un-read, un-superseded broadcasts plus records addressed to readerSessionId or to one of the comma-separated roles it claims. Mail addressed to any other reader never appears. addressedOnly (true/false or 1/0) drops the broadcasts. Visibility matches the program itself.
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.
programId*string^prog_[0-9a-f]{32}$readerSessionId*string1 <= length <= 256roles?stringlength <= 1024addressedOnly?string"0""1""true""false"limit?integer1 <= value <= 200Unread records for the reader.
application/json- response
ledgerVersion*stringprogramVersion*stringprogramId*string^prog_[0-9a-f]{32}$records*array<>items <= 200curl -X GET 'https://app.rensei.ai/api/cli/programs/string/reads?readerSessionId=string'{ "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", "unreadReason": "addressed" } ]}Read ordered structured-reference events for one program ledger.
Read ordered structured-reference events for one program ledger. - Rensei REST API operation reference.
Mark program records read for one reader session.
Idempotent: re-marking an already-read record marks nothing new. Record ids outside the program are ignored so a caller cannot probe record existence across programs. The reader attribution is derived from the authenticating principal; readerSessionId is the opaque session cookie being marked.