Rensei docs

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.

POST
/api/cli/programs/{programId}/reads

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}$

Request Body

application/json
  1. body
readerSessionId*string
Length1 <= length <= 256
recordIds*array<>
Items1 <= items <= 200

Response Body

Read receipts recorded.

application/json
  1. response
ledgerVersion*string
programVersion*string
programId*string
Match^prog_[0-9a-f]{32}$
marked*integer
Range0 <= value <= 9007199254740991
Example Request
curl -X POST 'https://app.rensei.ai/api/cli/programs/string/reads' \  -H 'Content-Type: application/json' \  -d '{  "readerSessionId": "string",  "recordIds": [    "string"  ]}'
Example Response
{  "ledgerVersion": "rensei.session-ledger/v1alpha1",  "programVersion": "rensei.session-ledger.program/v1alpha1",  "programId": "string",  "marked": 0}