Rensei docs
API ReferenceWorker Protocol

Deregister a worker

Removes the worker from the registry and releases any remaining claims. Returns the list of sessions that were unclaimed as a result. Auth: runtime JWT only (`sub` must match worker ID).

DELETE
/api/workers/{id}

Authorization

headerAuthorizationBearer <JWT>

Short-lived worker runtime JWT minted by the platform. Claims bind the worker, project, organization, registration, and scopes.

Path Parameters

id*string

Response Body

Worker deregistered.

application/json
  1. response
deregistered*true
Value intrue
unclaimedSessions*array<string>

Session IDs whose claims were released.

Example Request
curl -X DELETE 'https://app.rensei.ai/api/workers/string'
Example Response
{  "deregistered": true,  "unclaimedSessions": [    "string"  ]}