Skip to main content
Some tool calls should not happen on a model’s say-so. Set require_approval on a tool and every call to it pauses the run, shows the user what the agent is about to do, and waits for a decision. Approve, and the call runs exactly as proposed. Decline, and the agent is told so and carries on.

When to require approval

Anything that writes, charges, sends, or is hard to undo: creating a booking, issuing a refund, sending an email, deleting a record. Not reads — an approval prompt on every lookup trains users to click through without looking, which defeats the one on the refund.

Turning it on

require_approval is a flag on the tool’s entry in an agent’s tool list, not on the tool itself. The same tool can require approval in one agent and not in another.
In the Studio it is the Require approval before executing this tool badge on the tool card, and the checkbox of the same name in the agent’s tool list. The flag saves immediately. Like every other part of an agent’s configuration, it lives on the draft: published versions are frozen, so changing it means publishing and activating a new version. See Versions, environments and deploying.
Approvals are honoured for API tools, MCP tools and connected-app actions held by the agent. Tools that arrive through a per-user MCP connection built at request time are not yet gated.

What the user sees

When the agent decides to call a gated tool, the platform pauses it before the call runs and asks the model for one thing first: a short sentence, in the user’s language, saying what the call will do with its decisive details — the recipient and subject of an email, what a deletion removes. That sentence is the headline of the approval card, next to Approve and Decline. The proposed arguments are shown beneath it, so the user is deciding on the real call, not a paraphrase. The agent is told to treat the pause as the consent step. It does not ask permission in chat first and then call the tool: it calls the tool, and the card collects the decision. You do not need to write any of this into your own prompt — the platform adds the guidance whenever an agent holds a gated tool.

Deciding

Approve resumes the suspended run against the exact agent version that paused, and the tool runs with the arguments the user saw. Decline skips the call; the model receives “Tool call was not approved by the user”, and is instructed to treat that as a decision rather than an error — acknowledge it and continue without repeating the call unless asked. In the conversation history a declined call is recorded as denied, with the reason the model gave for asking and, when the client sent one, the reason the user gave for declining, so a replay of the thread shows what was proposed, that it did not happen, and why.

Durability

The paused run is persisted as a snapshot keyed by its run id, so it outlives the HTTP request that started it. A client that drops mid-pause can reconnect to the stream with GET /v1/chat/stream inside the disconnect grace window and replay the approval chunk (the replay opens with a transient data-resume-state part saying whether the turn is still running). Beyond that window an unanswered run is abandoned; the thread is intact and the user can simply ask again.

From the API

A gated call arrives on the chat stream as a data-tool-call-approval chunk instead of a tool result. It carries everything needed to answer it:
The stream ends there — the pause finishes the turn, and no follow-up suggestions are generated for it. The stream closes as soon as the pause chunk is out, while the API finishes saving the paused run in the background; a continuation sent before that save has landed waits for it (bounded by CHAT_SUSPEND_FINALIZE_TIMEOUT_MS, 60s by default) instead of failing, and answers 409 if the run could not be saved. To answer, POST /v1/chat again with the same threadId, the chunk’s agentVersionId (which skips routing so the continuation reaches the agent that paused), and an approval object. On a continuation messages may be empty. If agentVersionId is omitted, the API recovers the paused agent from the run itself, so the continuation still reaches it rather than the copilot’s default agent:
The same approval field works on POST /v1/agents/{id}/run and POST /v1/copilots/{id}/run. Those request/response endpoints report the pause in their collected output — the approval chunk is present and there is no finishReason — and are continued the same way. The SDK handles all of this for you; the shapes above matter when you drive the API yourself.

Design guidance

  • Argument names are user-facing. They appear on the card, so guest_email reads better than p_email_v2. If a parameter is an internal id the user cannot judge, make sure the reason sentence names the thing it refers to.
  • Gate the write, not the read that precedes it. Let the agent look up the order freely and pause only on the refund.
  • Don’t double-ask. If your prompt tells the agent to “always confirm before sending”, it will confirm in chat and then pause again on the card. The card is the confirmation.
  • Pinned configuration still applies. Values fixed on the agent’s copy of the tool are merged in when the approved call runs, so the user approves the arguments the model chose and your pins fill in the rest.

Delegated approval

Self-approval pauses the run and the same user decides. When the decision belongs to a different person — a liaison agent asks, a manager decides — the request has to outlive the run and the tool has to execute as the decider. That is delegated approval: the same require_approval: true on the agent’s tool entry, plus an approval_workflow_id naming an org workflow.
  • require_approval: false (or absent): no approval, as before.
  • require_approval: true without a workflow: self-approval, as above.
  • require_approval: true with approval_workflow_id: delegated. The save fails if the flag is off, the workflow is not the org’s, or its published input schema requires something the capture does not send.

What happens on a call

  1. Capture. The call is not executed and the run is not paused. An approval_requests row holds the exact arguments, the model’s _approval_reason sentence as its summary, what else the model said in metadata (approval_reason, and the progress_message the widget showed while the call ran — context for the approver, never part of the call or of the duplicate check), and who asked (user, thread, agent). The agent receives { status: "requested", approval_ref } and carries on — it should tell the user the action awaits approval. The same call on the same thread while one is pending returns the same approval_ref. approval.requested is emitted on the requester’s event stream (GET /v1/events).
  2. The workflow runs, as the requester, with input { approval_ref, tool_name, args, summary, metadata, requester_user_id, requester_thread_id }. Its steps decide who approves and how they are told — a tool that reads your rules, a tool that sends a WhatsApp — and then reach an approval step.
  3. The approval step suspends the run (workflow_runs.status = "suspended", a Mastra snapshot that survives restarts) with the eligible_user_ids and ttl_minutes the workflow gave it. The requester is never eligible; an empty list fails the request with “no approver available”. Default TTL: 24 hours.
  4. Someone decides through POST /v1/approval-requests/{ref}/decide — from the web (list_my_approval_requests / decide_approval as dashboard tools), from a WhatsApp button your webhook turns into the call, or from an agent in the decider’s own session. The platform enforces what the workflow cannot waive: exactly one decision (a second one gets 409 with the first outcome), never the requester, only an eligible user when some were named. The TTL sweep decides expired; your application may send decision: "stale" with the organization key when the call is no longer valid.
  5. The step resumes under the workflow version pinned at capture. On approved it runs the optional pre_execute tool as the decider (a dry run: { ok: false, reason, current } turns the approval into stale), then executes the captured arguments, as the decider, with that user’s tools_auth, outside any agent policy, exactly once. The row ends executed or failed.
  6. The requester is told. Whatever the outcome, it is delivered to the requesting thread as a notification (an idle thread is woken and the agent acts on it — tells the guest; a busy one gets it when its run ends) and as approval.resolved on the event stream. Telling the other approvers is the workflow’s own next step.
The step’s output, { approval_ref, decision, decided_by, decided_at, note, result }, feeds whatever the workflow does next.

The API

The MCP server exposes the same as list_my_approval_requests, get_approval_request and decide_approval, so a “needs your decision” page is an ordinary dashboard: the list as a source, approve / decline as row actions.
The step is an ordinary step kind in the workflow definition (kind: "approval"); see the definition format. The approval workflow is started as the requester, so its notifier tools run with the requester’s credentials; only the captured call runs as the decider.