Rensei docs
API ReferenceWorker Protocol

Daemon heartbeat (v1)

Resets the worker's Redis TTL and updates active session count. Requires a runtime JWT - registration tokens and legacy keys are not accepted on this endpoint.

POST
/v1/daemon/heartbeat

Authorization

workerJwt
AuthorizationBearer <token>

Runtime JWT minted by the platform at worker registration. Three-segment dotted string. Claims include {jti, proj, org, sub (=workerId), reg, scope[]}. Use on all post-registration worker endpoints.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/daemon/heartbeat" \  -H "Content-Type: application/json" \  -d '{    "workerId": "string",    "activeSessions": 0  }'
{
  "acknowledged": true,
  "serverTime": "2019-08-24T14:15:22Z",
  "pendingWorkCount": 0
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}
{
  "error": "Session not found"
}