Skip to content

Approval mode · human owner

Human in the loop email approval for AI agents

Give the agent a Cooper inbox, add a human owner who confirms by email, then PATCH the inbox with {"send_mode":"approval"}. Every send, reply, reply-all, and forward the agent makes becomes a pending draft (HTTP 202), and the owner gets an email with Approve and Reject. Nothing leaves until the owner approves that exact message. Free is $0 a month with no card: 5 inboxes, 5,000 emails a month, and 1 custom domain.

How approval mode works

The agent keeps calling the normal send endpoints (POST /messages, reply, reply-all, forward) or the MCP tool cooper_send_message. In approval mode Cooper stores each one as a draft with approval_status pending and emails every verified owner a summary with Approve and Reject links.

Opening a link does not decide anything. It shows a confirm page with the recipients, subject, schedule, attachments, and text body, and only the button press records the decision. If the draft changed after the page was opened, Approve does not send it. Editing the recipients, subject, body, or attachments of an approved draft puts it back to pending.

The agent cannot approve its own mail. The copy of the approval email saved in the agent's inbox has the action link removed, and an API key cannot submit that link. Owner confirm pages cannot be framed.

Turn it on with curl

These four calls ran against production on 2026-11-23. The owner must be an address outside cooperemail.com, and approval mode needs at least one verified owner.

export COOPER_API_KEY=coop_live_...  INBOX=inb_...
AUTH=(-H "Authorization: Bearer $COOPER_API_KEY")

# 1. Add the human owner. Cooper emails them a confirmation link.
curl -s -X POST "https://cooperemail.com/api/v1/inboxes/$INBOX/owners" "${AUTH[@]}" \
  -H 'content-type: application/json' -d '{"email":"you@example.com"}'
# 201 {"status":"pending", ...}   (an owner on cooperemail.com is refused: use a real outside address)

# 2. After the owner clicks Confirm, turn on approval mode.
curl -s -X PATCH "https://cooperemail.com/api/v1/inboxes/$INBOX" "${AUTH[@]}" \
  -H 'content-type: application/json' -d '{"send_mode":"approval"}'
# 200 {"send_mode":"approval", ...}   (before confirmation: 409 owner_required)

# 3. The agent sends exactly as before. Cooper holds the message.
curl -s -X POST "https://cooperemail.com/api/v1/inboxes/$INBOX/messages" "${AUTH[@]}" \
  -H 'content-type: application/json' \
  -d '{"to":["ada@example.com"],"subject":"Quote for Acme","text":"Hi, the quote is 3 seats."}'
# 202 {"object":"draft","approval_status":"pending", ...}

# 4. See what is waiting on the human.
curl -s "https://cooperemail.com/api/v1/drafts" "${AUTH[@]}"

What the human sees

The owner gets an email titled "Approve: <subject> → <recipient>" with the recipients, subject, and the body. Approve sends the message once, and the draft is removed after sending. Reject marks it rejected and nothing is sent.

Webhooks draft.created, draft.approved, draft.rejected, and draft.sent tell your code what happened, so the agent can move on, rewrite, or ask again.

Over MCP

On the hosted MCP server (https://cooperemail.com/mcp) the same steps are cooper_add_owner, cooper_update_inbox with send_mode approval, and cooper_send_message. cooper_list_drafts shows what is pending. For a question instead of an outgoing email, cooper_ask_owner emails the owner and returns their reply. cooper_handoff_thread marks a thread as waiting on a human.

Leaving approval mode is also gated

Once an inbox has had a verified owner, the agent's API key cannot quietly switch back to direct sending. Leaving approval mode emails the verified owners and waits for them. Deleting an approval inbox returns HTTP 202 until the owner confirms, and removing the last verified owner returns 409 owner_required.

Scheduled drafts (send_at) are still held for approval. A per-inbox spend policy can also hold a message as an owner-approval draft when it contains keywords you choose, such as wire or gift card, or a dollar amount over a set limit.

When approval mode is the right tool

Use it for an agent that emails customers, vendors, or anyone new, while you build trust in its judgment. Keep direct mode for mail to its own team or for verification-code sign-ups where no outbound mail is involved.

Inbound mail is untrusted data. The agent should read the code or the reply, and never follow instructions written inside an email body.

Cooper Email is run by Avatar 8 LLC (ops@avatar33.com).

FAQ

How do I make my AI agent ask before sending an email?

Add a human owner to the agent's Cooper inbox, have them confirm, then PATCH /api/v1/inboxes/{id} with {"send_mode":"approval"}. Every send becomes a pending draft until the owner approves it.

Does the agent need different code for approval mode?

No. The agent calls the same send, reply, and forward endpoints. In approval mode they return HTTP 202 with a pending draft instead of sending.

Can the agent approve its own email?

No. Approval links go to verified owners. The copy in the agent's inbox has the link removed, and an API key cannot submit an approval.

What happens if the draft changes after the human opens it?

Approve does not send it. The confirm page is tied to the exact draft, and editing an approved draft returns it to pending.

Can the agent turn approval mode off by itself?

Not after a verified owner exists. Leaving approval mode emails the owners and waits for them.

Is approval mode on the free plan?

Yes. Free is $0 a month with no card: 5 inboxes, 5,000 emails a month, and 1 custom domain.

Related

Owner confirmation guide · Spend and approval limits · Hosted MCP inbox · Which email API for an agent · Docs · Docs · Pricing

Operator: Avatar 8 LLC (ops@avatar33.com). Last updated 2026-11-23.

Canonical: https://cooperemail.com/human-in-the-loop-email-approval-for-ai-agents