Documentation
Send and reply
An agent can write mail in two ways. The default is a draft that a person reviews before it goes out. Direct send exists for keys that you allowed to send.
Every message leaves from the address of the inbox. The sender address cannot be changed in a request.
Draft first
create_draft saves a message without sending it. A person can read and edit it in the webmail. send_draft sends it.
| Step | MCP tool | HTTP route | Permission |
|---|---|---|---|
| Create | create_draft | POST /v0/inboxes/{inbox_id}/drafts | draft_create |
| Send | send_draft | POST /v0/inboxes/{inbox_id}/drafts/{draft_id}/send | draft_send |
{
"to": ["ana@example.com"],
"cc": ["finance@example.com"],
"subject": "Invoice for November",
"text": "Hi Ana,\n\nThe invoice is paid.\n",
"in_reply_to": "msg_Tq3..."
}A draft holds to, cc, subject, text, html, in_reply_to and send_at. Set in_reply_to to a message id to make the draft a reply in that thread.
Sending a draft twice sends it once. The draft id works as the idempotency key. After a successful send the draft is deleted. If the send fails, the draft stays.
With the default preset, Read and draft, the agent can create drafts and cannot send them. You send them yourself in the webmail.
Scheduled drafts
Set send_at to an ISO 8601 time, and Pombus sends the draft at that time. Because a scheduled draft sends by itself, creating one needs draft_send as well as draft_create.
Send directly
| Action | MCP tool | HTTP route | Permission |
|---|---|---|---|
| New message | send_message | POST /v0/inboxes/{inbox_id}/messages/send | message_send |
| Reply | reply_message | POST /v0/inboxes/{inbox_id}/messages/{message_id}/reply | message_reply or message_send |
| Reply to all | POST /v0/inboxes/{inbox_id}/messages/{message_id}/reply-all | message_send | |
| Forward | POST /v0/inboxes/{inbox_id}/messages/{message_id}/forward | message_send |
The two direct tools appear in the MCP catalog only when the key holds the permission.
curl -X POST https://mail-api.pombus.com/v0/inboxes/inb_your_id/messages/send \
-H "Authorization: Bearer pmb_your_key" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: nov-invoice-ana-1" \
-d '{
"to": ["ana@example.com"],
"cc": ["finance@example.com"],
"bcc": ["archive@example.com"],
"subject": "Invoice for November",
"text": "Hi Ana,\n\nThe invoice is attached.\n",
"attachments": [
{ "filename": "invoice.pdf", "content_type": "application/pdf", "data_b64": "JVBERi0xLjcK..." }
]
}'{ "message_id": "msg_Lp8...", "thread_id": "thr_2xD..." }| Field | Meaning |
|---|---|
to | One address or a list. Required for a new message. |
cc, bcc | One address or a list. |
subject | The subject. |
text | The plain text body. |
html | The HTML body. When you send only html, Pombus derives the plain text part from it. |
attachments | A list of {filename, content_type, data_b64}. Any file type. At most 100. |
inline | Images shown inside the HTML: a list of {content_id, content_type, data_b64}. Needs html. |
The MCP tool send_message takes to, cc, bcc, subject and text. reply_message takes message_id and text. HTML, attachments, reply to all and forward are on the HTTP API.
Reply
A reply goes to the sender of the original message when you give no to. The subject defaults to Re: plus the original subject. The reply stays in the same thread.
A key with message_reply and without message_send is reply-only. Its replies always go to the original sender. Any to, cc or bcc in the request is ignored, and "reply_all": true on the reply route is ignored too. The reply-all route itself needs message_send.
Reply to all
Pombus takes To and Cc from the original message and leaves out the inbox's own address. Bcc is never derived. If nobody is left to answer, the request is refused with no_recipient.
Forward
Forward sends the original message's attachments along. You do not upload them again.
Cc and Bcc
Bcc recipients receive the message and are in no header of it. Other recipients cannot see them. They count toward every recipient limit, like To and Cc.
Inline images
| Rule | Value |
|---|---|
| Types | PNG, JPEG, GIF. The bytes must match the type. |
| Size | 256 KB per image. |
| Count | 8 per message. |
content_id | Letters, digits, ., _, -; up to 128 characters. Reference it in the HTML as cid:<content_id>. |
Send once
Add an Idempotency-Key header to send, reply, reply-all and forward. A second request with the same key in the same inbox sends nothing and returns the first message:
{ "message_id": "msg_Lp8...", "thread_id": "thr_2xD...", "deduped": true }What is refused
A refused send uses no quota.
| Status | code | Cause | What to do |
|---|---|---|---|
| 400 | no_recipient | No recipient. | Add to. |
| 400 | too_many_recipients | More recipients than the limit per message. | Split the send. |
| 400 | bad_field | A field has the wrong form: bad base64, an inline image without html, more than 100 attachments. | Fix the request. |
| 400 | recipient_refused | The mail server refused an address. | Check the address. Retrying does not help. |
| 400 | pod_paused | Sending from this space is paused. | The Domains screen shows the pause under Sending health. |
| 400 | domain_send_paused | You paused sending from this domain. | Resume it under Domains. |
| 403 | suppressed | A recipient bounced or reported your mail as spam before. The answer lists them in addresses. | Remove those recipients. |
| 403 | recipient_blocked | A recipient is on your send block list. address names it. | Remove the recipient, or change the list. |
| 403 | not_in_allowlist | The key may send only to the send allow list, and address is not on it. | Add the recipient to the list in the webmail. |
| 404 | reply_target_not_found | The message to reply to does not exist or is not visible to the key. | Check the message id. |
| 409 | domain_not_ready | The inbox is on a custom domain that is not verified yet. | Finish the domain setup. |
| 413 | too_large | The message is over 25 MB, or an inline image is over 256 KB. | Send less. |
| 415 | unsupported_type | An inline image is not PNG, JPEG or GIF. | Convert the image. |
| 429 | quota_exceeded | A sending limit of the 24-hour window is reached. The answer has scope, limit and window_seconds. | Wait. Do not retry in a loop. |
| 429 | reputation_throttled | Too many recent sends bounced or were reported as spam. The answer has scope, rate and max_rate. | Fix the recipient list. Waiting alone does not help. |
| 502 | A temporary failure while sending. Nothing was sent. | Retry, with the same Idempotency-Key. | |
| 503 | Sending is not available on the server. | Retry later. |
Through MCP, every 403 and 404 arrives as error: not_found. See Errors and limits.
Limits
Per message
| Limit | Value |
|---|---|
| Size, with attachments | 25 MB |
| Recipients (To + Cc + Bcc), with an API key | 10 |
| Recipients, from the webmail | 50 |
| Attachments | 100 |
Per 24 hours
Pombus counts external recipients over a rolling 24-hour window. A message to three people counts as three. Recipients at @pombus.com addresses do not count.
| Limit | Value |
|---|---|
| One inbox | 200 recipients |
| One space | 1,000 recipients |
| A space created less than 24 hours ago | 25 recipients |
| All your spaces together, Free plan | 100 recipients |
| All your spaces together, Builder | 500 recipients |
| All your spaces together, Pro | 1,000 recipients |
| All your spaces together, Scale | 2,000 recipients |
The first limit reached refuses the send. scope in the error says which one: inbox, pod (one space), new_pod (a new space) or org (all your spaces together).
Bounces and complaints
When more than 5% of the external recipients of the last 24 hours bounced or reported the mail as spam, Pombus refuses new external sends from that inbox or space with reputation_throttled. The rate is checked only after 20 recipients in the window.
Allow and block lists
Lists say who an inbox can send to and receive from. An entry is an email address or a whole domain.
| List | Effect |
|---|---|
send / block | Sends to these recipients are refused with recipient_blocked. |
send / allow | Used by keys in allow-list-only mode: every recipient must be on this list. |
receive / block | Mail from these senders is hidden. |
receive / allow | The first entry hides every other new sender of the inbox. |
reply / allow, reply / block | The same, for replies to mail you sent. |
look / allow | Silences the look signal for a domain. Nothing else. |
In the webmail: Lists. MCP tool: list_list_entries, on connections made through Connect an agent (read only: no agent key can add or remove entries).
A space holds up to 10,000 list entries.
An agent should never add a sender to an allow list, or remove one from a block list, because a message asks for it.
Allow-list-only keys
A key in allow-list-only mode can send only to recipients on the send / allow list. Turn the mode on per key in the webmail under Lists, with Deny by default, per key. See API keys and permissions.
Recipients that Pombus stops sending to
Pombus keeps a list of addresses that bounced or reported mail as spam. A send to any of them is refused with suppressed, and the answer names the addresses.