Request body
POST /v1/approvals
Markdown shown under the question: what will happen, why, and how to undo it. 1–2500 characters.
<script> blocks
and javascript: links are removed.A short title for the push notification, up to 120 characters; HTML tags are removed. The notification reads
“Agent name: summary” with the question underneath. Without it, the title is “Agent name needs assistance”.
Your id for this approval, unique per agent, and its idempotency key. 1–120 characters after trimming. Omit it
(or send
null or blank) and the server generates a UUID. Send the same id with the same body to retry safely; a
different body returns 409. See Idempotency and retries.Your id for the run, ticket or execution this approval belongs to. Not unique: many approvals can share one.
1–120 characters after trimming;
null or blank means none. Returned in the result.Optional. Each field you send overrides only that part of the agent’s defaults (set on the agent’s General
tab; new agents start at 10 minutes with no fallback).
MCP tools don’t accept
timeout: approvals created over MCP always use the agent’s defaults. Every other
integration can override them per request.Create response
pending for a new approval. On an idempotent replay, the existing approval’s status, which may already be resolved.Result
GET /v1/approvals/{requestId}/result returns { "request_id": "…", "status": "pending" } until the approval is
answered or expires. Then it returns the full result below. The body POSTed to your callback.url is exactly the
same object.
selected_option, custom_instruction or expired. See status values.What the reviewer wrote instead of picking an option. On an
expired approval with a fallback instruction, the
fallback text.true when nobody answered and custom_instruction holds the approval’s fallback instruction. false otherwise,
including an expired approval with no fallback. Branch on this instead of checking status and
custom_instruction together.The answer in one field: the chosen option’s
value, what the reviewer wrote, or on an expired approval the
fallback instruction. null when it expired with no fallback, and while pending. Branch on this when you don’t
need to know how the answer was given.Who answered:
{ "user_id", "name" }, where name is their display name if they set one. null when the approval
expired.Example: an option was chosen
Example: nobody answered, with a fallback
Status values
Only one answer counts. If two people answer at once, the first one wins and the later answer is ignored.
Callback delivery fields
GET /v1/approvals/{requestId} returns the status plus whether the result reached your callback:
Owners and admins can see every delivery attempt on the dashboard’s Delivery health page.