Rensei docs
API ReferenceNotifications

Register or rotate an ActivityKit token under a current device binding.

Human identity and organization membership are derived from authentication. The binding must belong to the authenticated human; a binding owned by anyone else is indistinguishable from a missing one. Binding revision and proof must remain current through the token write. Persist the operation identifier and expected token revision before sending; only an identical current operation replays. Use expectedRevision zero for an empty slot or new binding epoch. Push-to-start and activity tokens are distinct; activityId is null only for push-to-start. The receipt never echoes the token and grants no session access; it does not start or follow a session.

POST
/api/cli/live-activities/bindings/{id}/tokens

Authorization

headerAuthorizationBearer <WorkOS user access token>

WorkOS user access token created by the Rensei CLI. The authenticated organization is resolved from membership and may be narrowed with X-Rensei-Org.

Path Parameters

id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Request Body

application/json
  1. body
bindingRevision*integer
Range1 <= value <= 9007199254740991
proof*string
Match^[a-fA-F0-9]{64}$
expectedRevision*integer
Range0 <= value <= 9007199254740990
operationId*string
Match^[A-Za-z0-9_-]{8,128}$
token*string
Match^(?:[a-fA-F0-9]{2})+$
Length2 <= length <= 4096
tokenKind*string
activityId*null

Response Body

Minimal token registration receipt.

application/json
  1. response
id*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
bindingRevision*integer
Range1 <= value <= 9007199254740991
revision*integer
Range1 <= value <= 9007199254740991
replayed*boolean
Example Request
curl -X POST 'https://app.rensei.ai/api/cli/live-activities/bindings/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens' \  -H 'Content-Type: application/json' \  -d '{  "bindingRevision": 1,  "proof": "string",  "expectedRevision": 0,  "operationId": "string",  "token": "string",  "tokenKind": "push-to-start",  "activityId": null}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "bindingRevision": 1,  "revision": 1,  "replayed": true}