Human-in-the-Loop Approval Gates
RadarOS supports requiring human approval before executing sensitive tool calls. Approvals work via callbacks, events, or REST API.Configuration
REST API
When using the transport layer, three approval endpoints are automatically available:| Endpoint | Method | Description |
|---|---|---|
/approvals/pending | GET | List all pending approval requests |
/approvals/:requestId/approve | POST | Approve a pending request |
/approvals/:requestId/deny | POST | Deny a pending request |
/approvals/stream | GET (SSE) | Real-time stream of new approval requests |
SSE Integration
Timeout Actions
| Action | Behavior |
|---|---|
"deny" (default) | Auto-deny when timeout expires |
"approve" | Auto-approve when timeout expires |
"throw" | Throw an error when timeout expires |