Human approval

An inbox can require approval before mail from an agent or a member leaves it. The send becomes a draft that waits for an owner or admin, who approves it, edits and approves it, or rejects it with a note the author reads.

Require approval

An admin or the owner turns on Require approval to send for an inbox on the console's Inboxes page (PATCH /v0/orgs/{orgId}/inboxes/{inboxId} with {"requireApproval": true}, a console sign-in token only). API keys cannot change the setting, so an agent can never switch off its own approval. An inbox's requireApproval field shows whether it is on.

After that, a send from that inbox by an API key, or through the MCP server, is held as a draft and waits for an owner or admin. So is a member's send from the console: a member's send waits. An owner's or admin's send goes out at once.

What the agent sees

Over the REST API, a send, a reply or a draft's send on that inbox answers 202 with:

{"status": "pending_approval", "draftId": "drf_…"}

instead of {status: "queued", …}. That covers POST /v0/inboxes/{inboxId}/messages, POST /v0/messages/{messageId}/reply and POST /v0/drafts/{draftId}/send. Retrying with the same Idempotency-Key gets the same answer. A draft sends once whatever its Idempotency-Key: sending a draft that was already sent again, by the same caller at the same version, answers 202 with the original message even with a new key, and no second mail goes out; anyone else gets 409.

Over MCP, send_message, reply and send_draft answer:

status: pending_approval
draft: drf_…
An owner or admin must approve it before it is sent; get_draft shows the outcome.

To learn the outcome, the agent can:

  • read the draft: GET /v0/drafts/{draftId} gives its status (open, sent or rejected), submittedAt, editedByReviewer, reviewNote and, once sent, messageId; over MCP, get_draft gives the same as lines;
  • watch for the draft.sent or draft.rejected event, on a webhook or in GET /v0/events;
  • over MCP, call list_new_mail, which shows a line per draft sent or rejected, with the reviewer's note.

While it waits, only an owner or admin can edit the draft. The agent can withdraw it with DELETE /v0/drafts/{draftId}. GET /v0/drafts?awaiting=true lists the drafts that wait for approval, oldest first.

Approving and rejecting

Only an owner or admin approves, edits or rejects a waiting draft. They open it under Awaiting approval on the console's Drafts page and choose Approve and send, or Reject. You can edit it before you approve. When you reject, you can add a note, and the author sees it. A rejection is final: the author writes a new draft. A member who tries gets 403, "Only an owner or admin can approve a draft." A member can withdraw their own waiting draft from the console, or with DELETE /v0/orgs/{orgId}/drafts/{draftId}. Members see agents' waiting drafts and their own; owners and admins also see members'. Viewers can see drafts but cannot send, approve or reject.

When someone leaves the organization or is removed, their own drafts, waiting or not, are deleted; agents' drafts stay.

The draft events

TypeWhendata fields
draft.submittedAn agent's or a member's draft now waits for an owner or admin. No message exists yet.draft_id, inbox_id, author_key_id (the API key that wrote it, key_…; null for a member's draft), author_user_id (the member who wrote it, usr_…; null for an agent's draft), author_name (the API key's name, or the member's name or, without one, their email, as it was then), subject, recipient_count, channel
draft.sentThe draft was sent: for a waiting draft, an owner or admin approved it.draft_id, message_id (the new message), edited (whether the reviewer changed it), approved_by (the reviewer's user id, usr_…, when a person sent a draft they did not write; null when an API key sent it, or when its own author did, such as a member who was made an admin sending their own waiting draft), approved_by_name (the reviewer's name, or their email without one; null with approved_by), channel
draft.rejectedAn owner or admin rejected it.draft_id, note (or null), rejected_by (the reviewer's user id, usr_…), rejected_by_name (the reviewer's name, or their email without one), channel

The sent message then has its own events, from message.sent on. All event types are on Webhooks.