Agents write the reply. A person sends it.
An AI agent connected to your workspace can read a conversation and draft an answer, but it cannot send mail from your mailbox. Someone on your team reads the draft, edits it if needed, and approves it. Approving sends it.
1
Who counts as an agent
An agent is an AI client acting for a person: a connection made through the ProductCraft MCP server, or any OAuth client that signed in for someone. Agents can create, edit and submit drafts. They can never send from a mailbox: a direct reply, forward or new email from an agent is refused with 409 APPROVAL_REQUIRED, and approving or sending a draft is refused with a 403.
People signed in to the console and Platform API Keys (your own backend code) can still reply directly, unless you turn on approval for everyone (section 5).
2
Draft a reply
POST /threads/{id}/drafts drafts a reply, reply_all or forward of a message in a conversation. Recipients and subject are worked out the way a direct reply works them out (the sender, or everyone on the message for reply-all); pass to to choose them yourself. submit: true puts the draft straight into the approval queue. POST /mailboxes/{id}/drafts drafts a new email from a mailbox, or a reply when you pass thread_id and message_id.
curl -X POST 'https://api.mail.productcraft.co/v1/workspaces/<ws>/threads/8d0c5a8e-.../drafts' \
-H 'authorization: Bearer <token>' \
-H 'content-type: application/json' \
-d '{
"kind": "reply",
"message_id": "3f0a3c3e-...",
"text": "Thanks for waiting. Your refund went out today.",
"submit": true
}'{
"id": "4b3a2c1d-...",
"mailbox_id": "703e88ab-...",
"thread_id": "8d0c5a8e-...",
"kind": "reply",
"status": "pending_approval",
"to": ["alice@example.com"],
"subject": "Re: Refund for order 42",
"text": "Thanks for waiting. Your refund went out today.",
"author": {
"type": "agent",
"label": "Claude",
"is_agent": true,
"on_behalf_of_user_id": "1f2e3d4c-...",
"client_id": "..."
},
"version": 1
}Each author keeps one open draft per message: a second one is 409 MAIL_DRAFT_EXISTS with the existing draft's id. Change a draft with PATCH /drafts/{id}, submit it later with POST /drafts/{id}/submit, or throw it away with DELETE /drafts/{id}.
3
Review the queue
GET /drafts?status=pending_approval is the approval queue across every mailbox you may see; add author=agents for drafts written by agents, or thread_id for one conversation. In the thread list, has_pending_draft marks conversations with a draft waiting. To tell reviewers as soon as something is waiting, subscribe a webhook endpoint to draft.pending_approval; draft.decided follows when someone approves or rejects it.
4
Approve or reject
POST /drafts/{id}/approve sends the draft at once from the mailbox, through the same path as any send (limits, suppression list, delivery log), and the reply appears in the conversation. Pass the version you read: if anyone changed the draft since, you get 409 MAIL_DRAFT_VERSION_CONFLICT instead of approving text you have not seen. To fix something first, send edits with the approval.
curl -X POST 'https://api.mail.productcraft.co/v1/workspaces/<ws>/drafts/4b3a2c1d-.../approve' \
-H 'cookie: <console session>' \
-H 'content-type: application/json' \
-d '{ "version": 1, "edits": { "text": "Thanks for waiting. Your refund went out today, it can take 3 days to show." } }'POST /drafts/{id}/reject with a note turns it down; nothing is sent and the author sees the note.
Only a person signed in can approve or reject. API keys and agents get 403. Nobody approves their own draft: the person an agent acted for cannot approve that agent's draft either (403 MAIL_DRAFT_SELF_APPROVAL), so an agent working for you always needs a second pair of eyes. If the send is refused (for example over a send limit), the draft stays in the queue.
5
Approval for everyone
Each mailbox has a reply_approval setting. With agents (the default) only agents go through drafts. With everyone, every reply, forward and new email from the mailbox, by a person, an API key or an agent, is a draft that another person approves.
curl -X PATCH 'https://api.mail.productcraft.co/v1/workspaces/<ws>/mailboxes/703e88ab-...' \
-H 'authorization: Bearer pcft_live_...' \
-H 'content-type: application/json' \
-d '{ "reply_approval": "everyone" }'With agents, a person or an API key can send their own draft without a reviewer: POST /drafts/{id}/send.
6
Permissions
| Action | Lets you |
|---|---|
mail.draft.create | create, edit, submit and discard drafts |
mail.draft.approve | approve (with mail.send, which it uses to send) and reject drafts; people only |
mail.send | reply directly, and send your own draft |
Owners and admins have all of them. The Email and Support assistant presets for connected agents include mail.draft.create. No preset includes mail.draft.approve, and a connected agent can never be given it. Every approval and rejection is in the workspace audit log with who decided and who the draft was written for. See also the Inbox API guide and the API reference.