Endpoints
Authentication
All four endpoints require a valid Bearer token or API key. Creating escalations requires any authenticated actor. Responding to an escalation (casting a vote) additionally requires thehitl:approve or admin role — see Roles.
POST /v1/escalations
Create a new HITL escalation. The escalation starts inpending status and awaits votes from approvers.
Request body
Response
Status:200 OK
GET /v1/escalations
List all escalations for the caller’s org. Results are scoped to the org derived from the credential.Query parameters
Response
Status:200 OK — returns an array of escalation objects.
GET /v1/escalations/:id
Fetch a single escalation with its complete approval record history and current quorum progress.Path parameters
Response
Status:200 OK
POST /v1/escalations/:id/respond
Cast an approve or reject vote on a pending escalation. Requires thehitl:approve or admin role.
The escalation transitions to a terminal status when quorum is reached:
If all votes are cast but neither threshold is crossed,
fallbackDecision is applied.
Path parameters
Request body
Response
Status:200 OK
escalation.status will be approved or rejected in the response. While quorum has not yet been reached, status remains pending.
State machine
409 is returned if a vote is cast against an escalation that is already in a terminal state.