Overview
The Escalations API manages escalation and approval workflows for mandates and actions. When a mandate requires approval or a condition triggers an escalation, a request is created and can be resolved by an authorized user as approved or denied.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /escalations | Create an escalation request |
| GET | /escalations | List escalations, filterable by status |
| GET | /escalations/:id | Get escalation details |
| POST | /escalations/:id/resolve | Resolve an escalation as approved or denied |
Example
curl -X POST http://localhost:4000/escalations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer tr_abc123" \
-d '{"mandate_id":"..."}'