Use case
Human approval for AI agent tool calls
Choose which calls wait
Approval is on by default for every grant. A grant can be finer: per kind of call (kind_policy: reads, writes and destructive calls each allow, ask or block), and per tool. A common setting is reads run, writes ask, destructive calls are blocked.
PUT /v1/tenants/acme/actors/support-bot/grants
{
"grants": [{
"connection_id": "…",
"daily_call_cap": 50,
"kind_policy": { "read": "allow", "write": "ask", "destructive": "block" }
}]
}Which kind a tool is comes from the grant's own rule, then our label (reviewed API operations, our built-ins), then the outside server's hints, which can only make a tool stricter. Anything unknown is a write, so it asks.
What the approver sees, and what the yes means
- The gated call does not run. The agent gets the status needs_approval, and your app gets an approval.needed webhook.
- The approval is bound to a digest of exactly this tool, connection and input. Deciding sends the digest back, so a person can only approve what they saw. An approved call runs once.
- Approve with edits: the approver can correct an argument instead of rejecting. The edited input is checked like a fresh call, and the agent is told its own input did not run.
- Approvals wait 24 hours, at most 20 per agent and connection, then expire.
- The kind the call was judged as is recorded: if the grant now blocks that kind, the approved call is refused.
Where people decide
- On our hosted approval page, for your workspace's approvers (a role that can decide one app's approvals and see nothing else).
- In your own product, over the API:
POST /v1/approvals/:id/decide. - From a small bot or tool that only decides, with an approval key (
pd_appr_…), which can list, read and decide approvals and nothing else. - Notices by email (an opt-in digest per person) or in a Slack channel through an incoming webhook. Neither carries the call's input.
Agents that can wait
MCP clients on protocol 2025-11-25 can ask for a task: a gated call answers with a task they poll while a person decides, then read the approved run's result. Older clients get needs_approval and can retry. Your own code can also ask before an action it runs itself (an approval request) and spend the yes once.
Details: Grants, tool calls and approvals and the MCP endpoint.
Try it on your own app
Sign in, make an app and connect a test account from the dashboard. The docs cover every endpoint, the MCP endpoint and the grant rules.