API ReferenceWorker Protocol
Daemon-native worker registration
Preferred registration path for rensei-tui (`af`). Carries the `registrationToken` in the JSON body (not the `Authorization` header). Returns a `runtimeJwt` the daemon uses for all subsequent calls.
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/register" \ -H "Content-Type: application/json" \ -d '{ "registrationToken": "string", "hostname": "string", "maxAgents": 0 }'{
"workerId": "string",
"runtimeJwt": "string",
"heartbeatIntervalSeconds": 0,
"pollIntervalSeconds": 0
}{
"error": "Session not found"
}{
"error": "Session not found"
}{
"error": "Session not found"
}API Reference
Interactive reference for every Rensei REST operation - schemas, auth, and a live "Test it" playground, generated from the OpenAPI spec.
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.