Refresh expired runtime JWT
Refresh expired runtime JWT - Rensei REST API operation reference.
AuthorizationBearer <rsp_live_* or project-scoped rsk_live_*>Project-scoped worker registration token. Current handlers accept this only where explicitly listed.
id*stringapplication/json- body
sessionShimSupported?booleansessionShimControllerId?string1 <= length <= 256sessionShimProtocolMin?integersessionShimProtocolMax?integer3 <= value <= 4294967295sessionShimCapabilities?array<>4 <= items <= 4New runtime token issued.
application/json- response
runtimeToken*stringruntimeTokenExpiresAt*stringdate-timeregistrationTokenExpiresAt*|The presenting registration token's expiry as an ISO timestamp, or null when the key has no expiry.
date-timeregistrationTokenRenewAfter*|When the daemon should renew the registration token next, or null when the key has no expiry.
date-timeheartbeatInterval*integerpollInterval*integersessionShim?Exact non-secret stable-host credential receipt. Adoption revision 0 is valid only while recovering. Hosted activation remains default-off until the relay durable full-host-frame path is deployed.
curl -X POST 'https://app.rensei.ai/api/workers/string/refresh-token' \ -H 'Content-Type: application/json' \ -d '{}'{ "runtimeToken": "string", "runtimeTokenExpiresAt": "2019-08-24T14:15:22Z", "registrationTokenExpiresAt": "2019-08-24T14:15:22Z", "registrationTokenRenewAfter": "2019-08-24T14:15:22Z", "heartbeatInterval": 0, "pollInterval": 0, "sessionShim": { "enabled": true, "state": "recovering", "workerHostId": "string", "adoptionRevision": "string", "controllerId": "string", "protocolMin": 1, "protocolMax": 3, "capabilities": [ "authoritative_snapshot_v2", "authoritative_snapshot_v2", "authoritative_snapshot_v2", "authoritative_snapshot_v2" ] }}Poll for queued work
Atomically pops and pre-claims work items from the priority queue (ZPOPMIN). Also returns inbox messages for the worker's active sessions. Workers that receive `preClaimed: true` must NOT make a separate claim call. Runtime-JWT callers also receive `gitCredentials` (short-lived GitHub PAT) and optionally `batchWork` (code-survival scan items, gated on the `code-survival-scan` capability).
AF-compatible worker registration
AF-compatible registration endpoint. Accepts three auth modes: 1. `Authorization: Bearer rsk_live_*` or `rsp_live_*` (registration token in header). 2. Legacy `WORKER_API_KEY` (transitional; being removed). 3. User session cookie / `rsk_` API key with `projectId` in body (new-user onboarding). `projectAdmissionVersion: 2` makes `projectIds` authoritative, including explicit empty = serve none. When the version is absent, the platform uses the bounded legacy projection. Returns a `runtimeToken` (and `runtimeTokenExpiresAt`) for runtime-JWT-capable callers; legacy callers receive `null` for these fields.