Gate API
Ask whether an action may run.
Evaluate an action
POST /v1/gates/evaluate
Authorization: Bearer sk_live_...
Content-Type: application/json
{
"session_id": "sess_abc123",
"action": "send_invoice"
}Verdicts
| Verdict | Your agent should |
|---|---|
| Allow | Proceed with the action |
| Warn | Proceed only if the reasons allow it; if a reason asks for approval, wait for it |
| Block | Not act. Surface the reasons to a person or fix them and evaluate again |
Good practice
- 1Call the gate immediately before acting
Not at the start of a long task: state may change in between.
- 2Treat errors as a block
If the gate cannot be reached, do not act. Fail closed.
- 3Keep the decision ID
Log it with the action so outcomes can be traced to their receipt.
- 4Show reasons to people
Reasons are written to be read; pass them on rather than hiding them.
Last reviewed October 2026Suggest a change