Send mail
Send email from any of your inboxes with POST /v1/email/inboxes/{id}/messages: plain text, HTML or both, to up to 50 people, as a new thread or a reply. Or write a draft, have a person approve it, or schedule it. Rules and a do-not-send list decide who may be written to, and how much an account may send follows its reputation.
POST /v1/email/inboxes/{id}/messages
Needs an API key with send access.
curl https://zurchin.com/v1/email/inboxes/5a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d/messages \
-H "Authorization: Bearer $ZURCHIN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: booking-4417-confirmation" \
-d '{
"to": ["ana@example.com"],
"subject": "Your booking",
"text": "Your train leaves at 9:14 from platform 4."
}'| Field | Value |
|---|---|
to | Required. A list of addresses, at least one. |
cc, bcc | Lists of addresses. Bcc reaches the envelope, never the headers. |
subject | Up to 998 characters. |
text, html | At least one of them. |
reply_to | The id of a message in this inbox. The new one joins its thread, with In-Reply-To and References set. |
attachment_ids | Finished uploads of this inbox to send with it: up to 20, 25 MB in all. |
One message reaches at most 50 distinct people across to, cc and bcc.
Send an Idempotency-Key header (any string up to 255 characters unique to this message, such as a UUID or your own id for it) and a retry can never send twice: a retry with the same key and body answers what the first did, with Idempotent-Replayed: true. Sending a draft takes one too. See idempotency.
A MAILER-DAEMON address is a mail system’s, and nobody reads what is sent there: sending to one, scheduling it or asking for approval answers 400 invalid, naming it. A draft may still hold one. Mail that a list or a filter sends back to a message’s bounce address reaches its inbox from MAILER-DAEMON@…amazonses.com, without who wrote it; write to the address named in its text instead.
Sent or held
| Status | status | Meaning |
|---|---|---|
| 201 | sent | Handed to the mail service. |
| 202 | held | The account is flagged: the message is kept, not sent, and waits for a person at Zurchin. |
A held message waits until a signed-in member of the account answers it in the mail client: it sits under the conversation it answers, and Review and send opens it in the composer, where it can be changed and sent, or Reject drops it (the approval email links there, as https://zurchin.com/email/approve/{id}). No API key can answer for them, or change it once it waits. It opens as text with every link’s address written out, so what a link says is never mistaken for where it goes, and it is sent as that text. Two answers at once send it once. That is how a draft you ask a person to approve is answered. A flagged account’s mail is held too, but a person at Zurchin reads it and sends or rejects it; the account’s members can only withdraw it, and approving one of their own drafts while flagged hands it to Zurchin.
Drafts, approval and scheduled send
A draft is a message written now and sent later, or never. Writing one needs only draft access, which may never send: give an agent a draft key and every message waits for you.
# Write a draft (draft access); the body is the same as sending
curl https://zurchin.com/v1/email/inboxes/$INBOX_ID/drafts \
-H "Authorization: Bearer $ZURCHIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": ["ana@example.com"], "subject": "Your booking", "text": "Platform 4, 9:14."}'
# Ask a person to approve it (draft access)
curl -X POST https://zurchin.com/v1/email/drafts/$DRAFT_ID/approval \
-H "Authorization: Bearer $ZURCHIN_API_KEY"
# Or send it yourself, now or later (send access)
curl https://zurchin.com/v1/email/drafts/$DRAFT_ID/send \
-H "Authorization: Bearer $ZURCHIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"send_at": "2026-11-20T08:00:00Z"}'| Call | Access | Answers |
|---|---|---|
POST /v1/email/inboxes/{id}/drafts | draft | 201 and the draft. Same fields as sending. |
GET /v1/email/drafts/{id} | read | A draft, held or scheduled message. |
PATCH /v1/email/drafts/{id} | draft | Replace its addresses and body; its thread stays (reply_to is set when it is written). |
DELETE /v1/email/drafts/{id} | draft | 204. Throws away a draft, or a held or scheduled message. A conversation the draft started goes with it. |
POST /v1/email/drafts/{id}/approval | draft | 202 and the draft, now held until a member answers. 409 draft_not_editable if it is held, scheduled, sent or rejected already. |
POST /v1/email/drafts/{id}/send | send | 201 sent, or with send_at (ISO 8601, up to 90 days ahead) 202 scheduled. A send_at up to 60 seconds past counts as now (clocks differ); further in the past answers 400 invalid. A flagged account’s draft answers 202 held. 409 draft_not_editable if it is held for approval, scheduled, sent or rejected: the message says which. |
A scheduled message goes through every check at the moment it leaves, not when it was scheduled, and leaves once even if the call that sends it arrives twice. The event log records draft.created, draft.approval_requested (with approve_url), draft.approved, draft.rejected and message.scheduled.
Note
draft.approval_requested in the event log carries the same approve_url.Limits by reputation
Abuse limits follow the account’s reputation, never its plan. They count recipients outside Zurchin; mail to another Zurchin inbox is not counted and not billed.
| Band | Recipients a day | In any 5 minutes |
|---|---|---|
unverified | 50 | 10 |
new | 200 | 50 |
good | 2,000 | 300 |
flagged | Every message is held | |
suspended | Nothing is sent |
Both windows slide. Over one, sending answers 429 rate_limited with Retry-After: the seconds until enough earlier recipients leave the window for this message to fit. A message to more recipients than the window allows at all waits the whole window (300 seconds, or a day).
Agent-of: mail that names its operator
Mail from an inbox linked to an agent (linking is no longer offered; inboxes linked before 23 November stay linked) carries the declaration of draft-chuang-agent-attribution-header-fields:
Agent-of: ana@zurchin.email
Agent-attribution: eyJpc3N1ZXIiOiJodHRwczovL3BpZGdlb24uYWkiLCJhZ2VudCI6ey4uLn19Agent-ofis the account’s own address: its first inbox on the same domain linked to no agent (the free inbox it got at sign-up), so it is on the sending domain; it is left out when there is none.Agent-attributionis base64 JSON. The draft defines no members; these are Zurchin’s.
Zurchin signs the declaration: a DKIM signature with selector pgn2, made before the mail leaves, covers Agent-of and Agent-attribution as well as From, To, Cc and Subject. Its d= is the domain Agent-of names (zurchin.email, or your own), so a receiver can prove the declaration was not added or changed on the way.
Note
pgn2._domainkey record points at ours (Your own domain): until a check finds it, agent_signing is false and the declaration goes unsigned. Where your DNS host speaks Domain Connect and has Zurchin’s template switched on, the domain’s page offers Set it up with <host> for this record once mail is on.Rules and the do-not-send list
Rules allow or block an address or a domain (and its subdomains), for sending or receiving, in one inbox or all. Before a message leaves, recipients a send rule blocks are refused; once any send allow rule applies to an inbox, it sends only to what those rules allow. A receive block keeps a sender’s mail out.
The do-not-send list holds addresses the account never writes to: a permanent bounce or a spam complaint adds one, for this account only, and you can add or remove one yourself. A temporary bounce (a full mailbox) never does.
# Block a domain for every inbox's sending (admin access)
curl https://zurchin.com/v1/email/rules \
-H "Authorization: Bearer $ZURCHIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"direction": "send", "action": "block", "pattern": "competitor.example", "inbox_id": null}'
# Never write to an address again
curl https://zurchin.com/v1/email/suppressions \
-H "Authorization: Bearer $ZURCHIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address": "ana@example.com"}'
# Take it off the list
curl -X DELETE "https://zurchin.com/v1/email/suppressions?address=ana@example.com" \
-H "Authorization: Bearer $ZURCHIN_API_KEY"| Call | Access | Answers |
|---|---|---|
GET /v1/email/rules | read | {data: [rule…]}. |
POST /v1/email/rules | admin | 201 and the rule. direction send or receive, action allow or block, pattern an address or a domain, inbox_id an inbox or null for all. |
DELETE /v1/email/rules/{id} | admin | 204. |
GET /v1/email/suppressions | read | {data: [{address, reason, created_at}]}, reason bounce, complaint or manual; newest first, up to 1,000. |
POST /v1/email/suppressions | admin | 201 {address}. |
DELETE /v1/email/suppressions?address= | admin | 204; the account may write to it again. |
Rules and the list reach every pod, so they take a key of the whole account; a key of one pod gets 403.
Delivery
What happened to each recipient is recorded in the event log: message.delivered, message.delayed, message.bounced, message.complained or message.rejected.
What it costs
3,000 emails a month are free per account, counted per recipient the mail service accepts. Past that, sending answers 402 until usage billing is on in Settings; then it is €2 per 1,000. Mail coming in is never charged. See Pricing and limits.
Errors
| Status | error.code | When |
|---|---|---|
| 400 | invalid | Not JSON; no to; a bad address; a MAILER-DAEMON address; more than 50 people; neither text nor html. |
| 402 | payment_required | This month’s free emails are used and usage billing is off. |
| 403 | forbidden | No send access; the inbox is suspended or events-only; the account is suspended; a send rule or the do-not-send list refuses a recipient (the message names them); the inbox is at your own domain and its DKIM is not verified yet; a key of one pod sending (or scheduling) from an inbox at another pod’s domain. |
| 403 | exfiltration_blocked | The message carries text a key read in another conversation (canary tokens). Nothing was sent. |
| 404 | not_found | No such inbox, or no such message in it to reply to. |
| 429 | rate_limited | Over the account’s daily or five-minute sending limit, or 600 requests a minute for the key. Retry-After says in how many seconds it fits. |
| 502 | send_failed | The mail service refused the message. |
| 507 | storage_full | The account’s 10 GB is used (storage). Nothing was sent. |
| 503 | unavailable | The mail service is busy. Try again in a minute. |