Authorize a tool invocation
Check whether an agent may invoke a tool or external action (an MCP tool, a shell command, a deploy). Governed by the wallet's tool block/allow/escalate lists; an empty allow-list allows all (governance is opt-in). Escalated invocations persist to the owner's approval inbox; approval mints a one-use grant — retry the same tool with grant_id to consume it, or poll /authorize/{id}. Supports Idempotency-Key: replaying the key returns the escalation's current state, including the terminal decision once resolved.
post/authorize/tool
Request
- Base URL: https://getsanction.com/api/v1
- URL: https://getsanction.com/api/v1/authorize/tool
- Auth: API key in header x-api-key
Request body
Response
Authorization decision (200 for allowed/escalated; 403 for denied; 409 for an already-consumed grant)
Changes
No recorded changes to this operation across all 1 revision of this API.