202 with an approval. A person approves or denies it; on approve, Naive runs the original
request once, as the original key, and records the result.
In the console, Approvals has two lists: Pending and History. “Change what asks first” takes you to the
identity’s rules.
The approval object
pending, approved, denied, expired, executed (approved and run) or failed (approved, but the run failed or the key no longer allows it).{ method, path, body_redacted } — what will run. Message text and other sensitive fields are redacted.After an approved run:
{ status, body, request_id } — the response the original call would have returned.List approvals
GET /v1/approvals — scope approvals:read (a key with audit:read also works). Filter with ?status= and
?identity=. The page includes total, the count for the filter (the console’s badge).
Get one approval
GET /v1/approvals/{id} — scope approvals:read. Also available to MCP clients as approvals_get.
Wait for a decision
POST /v1/approvals/{id}/wait — scope approvals:read. A long poll: it answers as soon as the approval is decided, or
after timeout_ms (at most 25000) with the approval still pending. Call it again to keep waiting. MCP clients use
approvals_wait.
Approve or deny
POST /v1/approvals/{id}/approve (body { "note"?: string }) and POST /v1/approvals/{id}/deny (body
{ "reason"?: string }). People only: a signed-in owner or admin. Keys and MCP connections are refused with
403 forbidden, so an agent cannot approve its own request.
The console calls these for you. From your own back office, a person’s session token can call
client.approvals.approve(id, { note }) and client.approvals.deny(id, { reason }).
Approve runs the original request. If the key was revoked, expired or narrowed in the meantime, the approval ends
failed instead. The run uses the approval id as its idempotency key, so it can never run twice.
Handling a held call in your code
client.tools.run returns the approval by default; pass
approvals: "wait" to block until it is decided, or approvals: "throw" to get an ApprovalRequiredError carrying
.approval. Older SDK namespaces throw ApprovalRequiredError. Held calls only happen in developer workspaces, so
existing integrations never see one.
Notifications and webhooks
Owners and admins can be emailed when an approval is requested; the setting is in Settings. Subscribe a webhook explicitly toapproval.requested and approval.decided to get { approval_id, action, identity_id, status }. See
Webhooks.