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

VerdictYour agent should
AllowProceed with the action
WarnProceed only if the reasons allow it; if a reason asks for approval, wait for it
BlockNot act. Surface the reasons to a person or fix them and evaluate again

Good practice

  1. 1
    Call the gate immediately before acting

    Not at the start of a long task: state may change in between.

  2. 2
    Treat errors as a block

    If the gate cannot be reached, do not act. Fail closed.

  3. 3
    Keep the decision ID

    Log it with the action so outcomes can be traced to their receipt.

  4. 4
    Show reasons to people

    Reasons are written to be read; pass them on rather than hiding them.

Last reviewed October 2026Suggest a change