Quickstart
- Create a free account and confirm your email address.
- Add your domain in Dashboard → Domains and add the DNS records shown. On Cloudflare, Mailumi can add them for you.
- Create an API key in Dashboard → API keys and store it in your server’s environment variables as
MAILUMI_API_KEY. - Send your first email with one HTTPS request from your backend, then follow it in Email activity.
Add the DNS records where your domain’s nameservers point, which is not always where your website runs: a site hosted on Vercel or Netlify often keeps its DNS at the registrar, such as Namecheap or GoDaddy. Mailumi detects the provider from the nameservers and shows each name the way that provider expects it. Most providers add your domain to the name themselves, so enter only the first part, such as _mailumi; if a record ends up at a doubled name, Mailumi finds it and tells you what to change.
1curl -X POST https://mailumi.com/api/v1/emails \2 -H "Authorization: Bearer $MAILUMI_API_KEY" \3 -H "Content-Type: application/json" \4 -H "Idempotency-Key: welcome-user-123" \5 -d '{6 "from": "Acme <hello@yourdomain.com>",7 "to": "alex@example.com",8 "subject": "Welcome aboard",9 "html": "<p>Your account is ready.</p>",10 "text": "Your account is ready."11 }'1// npm install mailumi2import { Mailumi } from 'mailumi';3 4const mailumi = new Mailumi(process.env.MAILUMI_API_KEY);5 6const { data, error } = await mailumi.emails.send({7 from: 'Acme <hello@yourdomain.com>',8 to: 'alex@example.com',9 subject: 'Welcome aboard',10 html: '<p>Your account is ready.</p>',11 text: 'Your account is ready.',12}, { idempotencyKey: 'welcome-user-123' });13 14if (error) throw new Error(error.message);15console.log(data.id, data.status);1import os2import requests3 4response = requests.post(5 "https://mailumi.com/api/v1/emails",6 headers={7 "Authorization": f"Bearer {os.environ['MAILUMI_API_KEY']}",8 "Idempotency-Key": "welcome-user-123",9 },10 json={11 "from": "Acme <hello@yourdomain.com>",12 "to": "alex@example.com",13 "subject": "Welcome aboard",14 "html": "<p>Your account is ready.</p>",15 "text": "Your account is ready.",16 },17 timeout=30,18)19email = response.json()20if not response.ok:21 raise RuntimeError(email["error"])22print(email["id"], email["status"])1<?php2$ch = curl_init('https://mailumi.com/api/v1/emails');3curl_setopt_array($ch, [4 CURLOPT_POST => true,5 CURLOPT_RETURNTRANSFER => true,6 CURLOPT_HTTPHEADER => [7 'Authorization: Bearer ' . getenv('MAILUMI_API_KEY'),8 'Content-Type: application/json',9 'Idempotency-Key: welcome-user-123',10 ],11 CURLOPT_POSTFIELDS => json_encode([12 'from' => 'Acme <hello@yourdomain.com>',13 'to' => 'alex@example.com',14 'subject' => 'Welcome aboard',15 'html' => '<p>Your account is ready.</p>',16 'text' => 'Your account is ready.',17 ]),18]);19$email = json_decode(curl_exec($ch), true);20if (curl_getinfo($ch, CURLINFO_HTTP_CODE) >= 300) {21 throw new RuntimeException($email['error']);22}23echo $email['id'];1package main2 3import (4 "bytes"5 "encoding/json"6 "fmt"7 "net/http"8 "os"9)10 11func main() {12 body, _ := json.Marshal(map[string]any{13 "from": "Acme <hello@yourdomain.com>",14 "to": "alex@example.com",15 "subject": "Welcome aboard",16 "html": "<p>Your account is ready.</p>",17 "text": "Your account is ready.",18 })19 req, _ := http.NewRequest("POST", "https://mailumi.com/api/v1/emails", bytes.NewReader(body))20 req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILUMI_API_KEY"))21 req.Header.Set("Content-Type", "application/json")22 req.Header.Set("Idempotency-Key", "welcome-user-123")23 res, err := http.DefaultClient.Do(req)24 if err != nil {25 panic(err)26 }27 defer res.Body.Close()28 var email map[string]any29 json.NewDecoder(res.Body).Decode(&email)30 if res.StatusCode >= 300 {31 panic(email["error"])32 }33 fmt.Println(email["id"], email["status"])34}For Node.js, Bun, Deno and Cloudflare Workers, use the official mailumi package. Other languages need no SDK: any language that can make an HTTPS request can use Mailumi.
Node.js SDK and CLI
The official mailumi package is a typed client with no dependencies for Node.js 18+, Bun, Deno, Cloudflare Workers and any other runtime with fetch, as ESM or CommonJS. Every method resolves to { data, error } and never throws for API errors, the same shape as the Resend SDK, so switching from Resend means changing the import and the API key.
npm install mailumi1import { Mailumi } from 'mailumi';2 3const mailumi = new Mailumi(); // reads MAILUMI_API_KEY4 5// Send later, with an attachment.6const { data, error } = await mailumi.emails.send({7 from: 'Acme <billing@yourdomain.com>',8 to: ['alex@example.com'],9 replyTo: 'support@yourdomain.com',10 subject: 'Your invoice',11 text: 'Your invoice is attached.',12 attachments: [{ filename: 'invoice.pdf', content: pdfBytes }],13 scheduledAt: 'in 1 hour',14}, { idempotencyKey: `invoice/${invoice.id}` });15 16// Check delivery, or cancel while it is scheduled.17await mailumi.emails.get(data.id);18await mailumi.emails.cancel(data.id);19 20// Up to 100 emails in one request.21await mailumi.batch.send([22 { from, to: 'a@example.com', subject, html },23 { from, to: 'b@example.com', subject, html },24]);25 26// Contacts for campaigns (needs an API key with contacts:write).27await mailumi.contacts.create({ audienceId: 'aud_…', email: 'alex@example.com' });28 29// Set up a domain and a webhook (needs domains:write and webhooks:write, or Full access).30const { data: domain } = await mailumi.domains.create({ name: 'mail.yourdomain.com' });31// domain.records lists the DNS records to publish. Then:32const { data: check } = await mailumi.domains.verify(domain.id); // check.ready, check.message33const { data: hook } = await mailumi.webhooks.create({ name: 'Production', url: 'https://yourapp.com/webhooks/mailumi', events: ['email.delivered', 'email.bounced'] });34// hook.secret is only returned now: store it as MAILUMI_WEBHOOK_SECRET.Options accept camelCase (replyTo, scheduledAt, templateId) as well as the API’s snake_case. Attachment content can be bytes or a base64 string. Rate limits (429) and temporary errors (5xx) are retried twice with backoff. Each send carries an Idempotency-Key, reused on every retry, so a retry never sends twice; pass { idempotencyKey } to choose your own. verifyWebhook checks webhook signatures, as shown under Webhooks.
| Method | Endpoint |
|---|---|
emails.send(email, { idempotencyKey }) | POST /emails |
batch.send(emails, { idempotencyKey }) | POST /emails/batch |
emails.list({ direction, before }) | GET /emails |
emails.get(id) | GET /emails/{id} |
emails.update({ id, scheduledAt }) | PATCH /emails/{id} |
emails.cancel(id) | POST /emails/{id}/cancel |
emails.attachment({ id, index }) | GET /emails/{id}/attachments/{index} |
domains.list(), create({ name }), get(id), verify(id), update({ id, receivingEnabled, mxConsent, openTracking, clickTracking }), remove(id) | /domains, /domains/{id} and /domains/{id}/verify |
webhooks.list(), create({ name, url, events, domainId, recipient }), get(id), test(id), deliveries(id), retry({ id, deliveryId }), disable(id) | /webhooks and /webhooks/{id} |
templates.list(), create({ name, subject, html, variables }), get(id), update({ id, … }), remove(id) | /templates and /templates/{id} |
audiences.list(), create({ name }), get(id), update({ id, name }), remove(id) | /audiences and /audiences/{id} |
contacts.create(), import(), list(), get(), update(), remove() | /audiences/{id}/contacts and /audiences/{id}/contacts/{contact} |
campaigns.list(), create({ name, subject, text, from, audienceId }), get(id), update({ id, … }), send(id), duplicate(id), remove(id) | /campaigns and /campaigns/{id} |
suppressions.list({ search }), remove(address) | /suppressions and /suppressions/{address} |
verifyWebhook({ payload, headers, secret }), also webhooks.verify() | Runs locally; needs no API key |
The package also installs the mailumi command. Set MAILUMI_API_KEY, then send email, check delivery, set up domains and webhooks, and manage templates, contacts and campaigns from a terminal or a CI job. domains verify --wait checks again every 15 seconds until the domain is verified. Add --json for machine-readable output; errors exit with code 1.
1npx mailumi send --from "Acme <hello@yourdomain.com>" --to alex@example.com \2 --subject "Deploy finished" --text "Version 2.4 is live." --attach ./report.pdf3npx mailumi emails get <id>4npx mailumi domains add mail.yourdomain.com5npx mailumi domains verify <domain_id> --wait6npx mailumi webhooks create https://yourapp.com/webhooks/mailumi --name Production --events email.delivered,email.bounced7npx mailumi contacts add <audience_id> alex@example.com --first-name Alex8npx mailumi campaigns send <campaign_id>9npx mailumi --helpSend with SMTP
On the Pro and Scale plans, software that only speaks SMTP can send through Mailumi too: WordPress, Supabase Auth, Ghost, Django, Laravel, Rails, Nodemailer, PHPMailer, monitoring tools and printers. Use these settings:
| Setting | Value |
|---|---|
| Host | smtp.mailumi.com |
| Port | 465 (TLS) or 587 (STARTTLS) |
| Username | mailumi |
| Password | An API key with the email:send permission |
| Encryption | Required: TLS 1.2 or newer before you log in |
1import nodemailer from 'nodemailer';2 3const transport = nodemailer.createTransport({4 host: 'smtp.mailumi.com',5 port: 465,6 secure: true,7 auth: { user: 'mailumi', pass: process.env.MAILUMI_API_KEY },8});9 10await transport.sendMail({11 from: 'Acme <hello@yourdomain.com>',12 to: 'alex@example.com',13 subject: 'Welcome to Acme',14 html: '<p>Thanks for signing up.</p>',15});1# settings.py2EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"3EMAIL_HOST = "smtp.mailumi.com"4EMAIL_PORT = 5875EMAIL_USE_TLS = True6EMAIL_HOST_USER = "mailumi"7EMAIL_HOST_PASSWORD = os.environ["MAILUMI_API_KEY"]8DEFAULT_FROM_EMAIL = "Acme <hello@yourdomain.com>"1MAIL_MAILER=smtp2MAIL_HOST=smtp.mailumi.com3MAIL_PORT=5874MAIL_ENCRYPTION=tls5MAIL_USERNAME=mailumi6MAIL_PASSWORD=your_mailumi_api_key7MAIL_FROM_ADDRESS=hello@yourdomain.com8MAIL_FROM_NAME="Acme"1# config/environments/production.rb2config.action_mailer.delivery_method = :smtp3config.action_mailer.smtp_settings = {4 address: "smtp.mailumi.com",5 port: 587,6 user_name: "mailumi",7 password: ENV["MAILUMI_API_KEY"],8 authentication: :plain,9 enable_starttls_auto: true10}1use PHPMailer\PHPMailer\PHPMailer;2 3$mail = new PHPMailer(true);4$mail->isSMTP();5$mail->Host = 'smtp.mailumi.com';6$mail->Port = 465;7$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;8$mail->SMTPAuth = true;9$mail->Username = 'mailumi';10$mail->Password = getenv('MAILUMI_API_KEY');11$mail->setFrom('hello@yourdomain.com', 'Acme');12$mail->addAddress('alex@example.com');13$mail->Subject = 'Welcome to Acme';14$mail->Body = 'Thanks for signing up.';15$mail->send();1import os, smtplib2from email.message import EmailMessage3 4msg = EmailMessage()5msg["From"] = "Acme <hello@yourdomain.com>"6msg["To"] = "alex@example.com"7msg["Subject"] = "Welcome to Acme"8msg.set_content("Thanks for signing up.")9 10with smtplib.SMTP_SSL("smtp.mailumi.com", 465) as smtp:11 smtp.login("mailumi", os.environ["MAILUMI_API_KEY"])12 smtp.send_message(msg)Email sent through SMTP is handled exactly like an API request: the From address must be on a verified domain, it counts toward your plan, suppressed recipients are skipped, and it appears in Email activity and sends the same webhook events. The success reply contains the email ID, as in 250 Queued as 3f2c…, which you can look up with GET /emails/{id}.
- Recipients come from the SMTP envelope. Addresses in the To and Cc headers stay visible; every other envelope recipient is sent as Bcc.
- Attachments and inline images (
cid:) are kept, as are threading and list headers (In-Reply-To,References,List-Unsubscribe) and your ownX-headers. - Up to 50 recipients per message and 20 MB per message, with attachments under 10 MB in total.
- If your client resends a message after a dropped connection, the same Message-ID and recipients return the original email instead of sending it twice.
- Use AUTH PLAIN or AUTH LOGIN with username
mailumiand the API key as the password. Restrict the key to one domain if the app only sends from that domain. Mail apps that connect to a mailbox log in with the mailbox address and mailbox password instead.
| Reply | Meaning |
|---|---|
250 | Accepted and queued for delivery. |
535 | Login failed: the API key is wrong, revoked, expired or lacks email:send, or the workspace is on the Free plan (SMTP is included on Pro and Scale). |
550 | Rejected for good, with the reason: for example a From domain that is not verified, a recipient that is not a valid address, or the plan limit. Your client should not retry. |
451 | Temporary, for example the rate limit of 120 requests per minute. Send the message again a little later; mail servers and apps with a mail queue do this on their own. |
452 | More than 50 recipients; the rest are refused and can go in another message. |
552 | The message is too large. |
421 | Too many failed logins from your address; wait 15 minutes. |
The SMTP server runs in Amsterdam on Fly.io. It does not store messages: each one is passed straight to the Mailumi API in the EU over HTTPS and handled from there. For new code, the HTTP API or the Node.js SDK gives you more, such as scheduling, templates, tags and batch sends.
Mailboxes and webmail
On the Pro and Scale plans, your domains also get real mailboxes. Read and write email in the dashboard under Mail, at mailumi.com/webmail with a mailbox password, or in the mail app on your phone and computer.
- A mailbox per address: create jan@ or sales@, each with its own password. Email to jan+orders@ arrives in jan@ as well.
- A catch-all mailbox per domain receives everything sent to addresses without a mailbox of their own, and can send from any of those addresses. Make up an address on the spot, give it out, and the replies arrive in the catch-all.
- Folders: Inbox, Sent, Drafts, Junk, Trash and Archive. Email that Amazon SES marks as spam goes to Junk; email with a virus is never delivered.
- Replies stay in one conversation through the In-Reply-To and References headers, and webmail keeps a copy of everything you send in Sent.
- Storage: 10 GB on Pro and 50 GB on Scale, shared by all mailboxes of the workspace. Mail stays until you delete it and is stored encrypted in the EU. When storage is full, new email is not saved in mailboxes until you free up space; Email activity and webhooks keep working and the workspace owner gets an email.
- Email you send from webmail or a mail app counts toward your plan like an API send and needs a verified domain.
Before you create mailboxes, turn on receiving for the domain under Domains and add the MX record. Receiving sends all email for the domain to Mailumi, so if the domain already has mailboxes elsewhere, create a Mailumi mailbox for each address people use before you change the MX record.
| Mail app setting | Value |
|---|---|
| Incoming mail (IMAP) | imap.mailumi.com, port 993, SSL/TLS |
| Outgoing mail (SMTP) | smtp.mailumi.com, port 465 (SSL/TLS) or 587 (STARTTLS) |
| Username | The full mailbox address, for example jan@yourdomain.com. For a catch-all mailbox, any address of the domain that has no mailbox of its own |
| Password | The mailbox password from Mail → Mailboxes in the dashboard. Dashes and capital letters are optional |
On iPhone, iPad and Mac, download the setup profile from Mail → Mailboxes in the dashboard: it fills in these settings and asks for the password. Apple Mail, Outlook, Thunderbird, Gmail for Android and other apps work with the settings above. Choose IMAP when the app asks.
When a workspace moves to the Free plan, webmail and mail apps lose access straight away and new email is no longer saved in mailboxes. Saved mail is kept for 30 days and then deleted; upgrading to Pro or Scale within those 30 days keeps everything. Deleting a mailbox or removing its domain deletes its mail.
A mailbox can also forward its email to up to 5 outside addresses, such as your Gmail or Outlook address. Add them under Mail → Mailboxes → Forwarding. Each address gets an email with a confirmation link, and nothing is forwarded until it is confirmed.
- A forwarded email arrives from the mailbox’s own address, with the sender’s name, for example “Sam Lee via yourdomain.com”. Reply goes to the original sender. It is signed with your domain’s DKIM key and carries an ARC seal from Mailumi, which is what Gmail asks of forwarding services.
- You choose per mailbox whether forwarded email is also kept in the mailbox. Email that could not be forwarded is always kept.
- Spam, email with a virus, email that fails DMARC for a domain that asks receivers to reject or quarantine it, and bounce messages are not forwarded; they stay in the mailbox.
- Each forwarded email counts toward your plan like a sent email. A workspace forwards up to 500 emails per day; after that, email stays in the mailboxes until 00:00 UTC and the workspace owner gets an email.
- Forwarding to an address stops by itself when it bounces, when a forwarded email is marked as spam, or when the recipient stops it with the link in the confirmation email. The workspace owner gets an email.
- Attachments that are too large to forward (over 20 files or 10 MB) stay in the mailbox, and the forwarded email says so.
Mailboxes can also be managed with an API key that has the mailboxes:write permission, for example to give each new team member an address. The response to POST /mailboxes holds the password once; POST /mailboxes/:id/password gives a mailbox a new one and signs it out everywhere. POST /mailboxes/:id/forwards adds a forwarding address and PATCH /mailboxes/:id with keep_copy chooses whether forwarded email is also kept. The email in a mailbox is read and sent in webmail or a mail app, not through the API.
1curl -X POST https://mailumi.com/api/v1/mailboxes \2 -H "Authorization: Bearer $MAILUMI_API_KEY" -H "Content-Type: application/json" \3 -d '{ "address": "jan@yourdomain.com", "display_name": "Jan de Vries" }'4 5→ { "object": "mailbox", "id": "…", "address": "jan@yourdomain.com", "login_address": "jan@yourdomain.com",6 "password": "…", "mail_app_settings": { "imap": { "host": "imap.mailumi.com", "port": 993, … }, … }, … }Build with AI
Using Cursor, Claude Code, Codex, GitHub Copilot, Windsurf, Lovable, Bolt, v0 or Replit? Point your assistant at the complete reference in one file, llms-full.txt, or this page as Markdown, docs.md. Ready-made prompts for sending, webhooks, receiving and switching providers are on the Build with AI page.
To teach your assistant Mailumi for good, save these rules in your project as AGENTS.md, CLAUDE.md or a Cursor rule in .cursor/rules/mailumi.mdc:
# Mailumi email API
This project sends and receives email with Mailumi. Complete reference: https://mailumi.com/llms-full.txt
- Base URL: https://mailumi.com/api/v1. Authenticate with the header "Authorization: Bearer $MAILUMI_API_KEY". Call Mailumi only from server-side code; never expose the key to browsers or mobile apps.
- JavaScript and TypeScript: use the official package (npm install mailumi). const mailumi = new Mailumi(process.env.MAILUMI_API_KEY); const { data, error } = await mailumi.emails.send({ from, to, subject, html }, { idempotencyKey }). Methods never throw for API errors; they resolve to { data, error }. Verify webhooks with verifyWebhook({ payload: rawBody, headers, secret }). The client also has domains, mailboxes, webhooks, templates, audiences, contacts, campaigns and suppressions methods for setup.
- Other languages: send a User-Agent header that names your app, such as "yourapp/1.0". The default User-Agent of Python's built-in urllib ("Python-urllib/3.x") is blocked with 403 and Cloudflare error 1010 (browser_signature_banned) before the request reaches Mailumi; requests, httpx, fetch and curl work as they are.
- Send: POST /emails with JSON { from, to, subject, html and/or text } and optional cc, bcc, reply_to, attachments [{ filename, content (base64), content_type, content_id }], headers, tags [{ name, value }] and scheduled_at. The from domain must be verified in Mailumi.
- Batch: POST /emails/batch with an array of up to 100 emails (no attachments or scheduled_at). Templates: pass template_id and variables instead of subject and html.
- Software that only speaks SMTP (Pro and Scale plans): host smtp.mailumi.com, port 465 (TLS) or 587 (STARTTLS), username mailumi, password $MAILUMI_API_KEY.
- Always send an Idempotency-Key header that is stable for each logical email. Retry 429 and 503 with the same key.
- Errors are JSON { "error": "message", "code": "machine_readable_code" } with a 4xx or 5xx status. On 429, wait the seconds in the Retry-After header. OpenAPI description: https://mailumi.com/openapi.json
- Webhooks use the Standard Webhooks format. Verify webhook-signature ("v1," + base64 HMAC-SHA256 of webhook-id + "." + webhook-timestamp + "." + raw body) with the base64 part of MAILUMI_WEBHOOK_SECRET after "whsec_", in constant time. Reject timestamps older than 5 minutes and process each event id once.
- Setup can be automated with the same API: POST /domains then POST /domains/{id}/verify, POST /mailboxes (Pro and Scale; returns the mailbox password once), POST /webhooks (returns the signing secret once), /templates, /campaigns (send with POST /campaigns/{id}/send) and /suppressions. Each needs its permission, such as domains:write or webhooks:write, or full_access. API keys cannot create or revoke API keys.
- Events: email.sent, email.delivered, email.delivery_delayed, email.bounced, email.complained, email.opened, email.clicked, email.failed, email.unsubscribed, email.received.
- Incoming email arrives as email.received. data has email_id, from, to, cc, reply_to, subject, text, html, message_id (string or null), spam (boolean) and attachments [{ id, filename, content_type, content_id, size, download_url }]. Download attachments server-side with an email:read key.MCP server
Connect Cursor, Claude Code, VS Code, Codex or any other MCP client to https://mailumi.com/mcp and your assistant can send a test email, check whether it was delivered, add and verify domains, and set up mailboxes, webhooks, templates, audiences, campaigns and suppressions, without leaving the editor. The server uses your API keys and their permissions: a key with only read permissions gives read-only access, and a Full access key lets the assistant do everything the API can.
1{2 "mcpServers": {3 "mailumi": {4 "url": "https://mailumi.com/mcp",5 "headers": {6 "Authorization": "Bearer ${env:MAILUMI_API_KEY}"7 }8 }9 }10}claude mcp add --transport http mailumi https://mailumi.com/mcp \ --header "Authorization: Bearer $MAILUMI_API_KEY"1{2 "inputs": [3 {4 "type": "promptString",5 "id": "mailumi-api-key",6 "description": "Mailumi API key",7 "password": true8 }9 ],10 "servers": {11 "mailumi": {12 "type": "http",13 "url": "https://mailumi.com/mcp",14 "headers": {15 "Authorization": "Bearer ${input:mailumi-api-key}"16 }17 }18 }19}[mcp_servers.mailumi]url = "https://mailumi.com/mcp"bearer_token_env_var = "MAILUMI_API_KEY"- Cursor: Add to Cursor in one click, or save the JSON in
~/.cursor/mcp.json. - Claude Code: run the command in your terminal.
- VS Code: save the JSON as
.vscode/mcp.json; VS Code asks for the key once and stores it securely. - Codex: add the lines to
~/.codex/config.toml.
Set MAILUMI_API_KEY in your system environment before you open the editor. You can also put the key straight into your user-level config instead of the variable, but never into a file you commit.
| Tool | Permission | What it does |
|---|---|---|
send_email | email:send | Send an email, for example a test to your own address |
list_emails | email:read | List recent sent and received email |
get_email | email:read | Check delivery: each recipient’s status and every event |
reschedule_email | email:send | Change when a scheduled email is sent |
cancel_email | email:send | Cancel a scheduled email |
list_domains | domains:read | List your domains and their DNS verification status |
get_domain | domains:read | Read one domain with each DNS record and what was found |
add_domain | domains:write | Add a domain and get the DNS records to publish |
verify_domain | domains:write | Check the DNS records now and say what is missing |
update_domain | domains:write | Turn receiving, open tracking or click tracking on or off |
remove_domain | domains:write | Remove a domain |
list_mailboxes | mailboxes:write | List mailboxes and the storage they share |
get_mailbox | mailboxes:write | Read one mailbox |
create_mailbox | mailboxes:write | Create a mailbox or catch-all and get its password once |
update_mailbox | mailboxes:write | Change the name a mailbox sends as, or whether forwarded email is kept |
add_mailbox_forward | mailboxes:write | Forward a mailbox to an outside address, after the recipient confirms |
remove_mailbox_forward | mailboxes:write | Stop forwarding to an address |
reset_mailbox_password | mailboxes:write | Give a mailbox a new password |
delete_mailbox | mailboxes:write | Delete a mailbox and its mail |
list_webhooks | webhooks:write | List webhooks and their events |
create_webhook | webhooks:write | Create a webhook and get its signing secret once |
test_webhook | webhooks:write | Send a signed test event to a webhook |
disable_webhook | webhooks:write | Stop sending events to a webhook |
list_webhook_deliveries | webhooks:write | Recent deliveries with status, response code and error |
retry_webhook_delivery | webhooks:write | Deliver a pending or failed event again |
list_templates | templates:write | List saved templates |
get_template | templates:write | Read one template |
create_template | templates:write | Save a template with {{variable}} placeholders |
update_template | templates:write | Change a template |
delete_template | templates:write | Delete a template |
list_audiences | contacts:write | List audiences with contact counts |
create_audience | contacts:write | Create an audience |
rename_audience | contacts:write | Rename an audience |
delete_audience | contacts:write | Delete an audience and its contacts |
list_contacts | contacts:write | List or search the contacts of an audience |
add_contacts | contacts:write | Add or update up to 1,000 contacts |
update_contact | contacts:write | Rename, unsubscribe or resubscribe a contact |
delete_contact | contacts:write | Remove a contact from an audience |
list_campaigns | campaigns:write | List campaigns with delivery statistics |
get_campaign | campaigns:write | Read a campaign, its readiness or its results |
create_campaign | campaigns:write | Create a draft campaign |
update_campaign | campaigns:write | Change a draft campaign |
send_campaign | campaigns:write | Send a draft campaign to its audience |
duplicate_campaign | campaigns:write | Copy a campaign into a new draft |
delete_campaign | campaigns:write | Delete a campaign |
list_suppressions | suppressions:write | List addresses that bounced or complained |
remove_suppression | suppressions:write | Allow sending to an address again |
get_documentation | Any key | Read the complete API reference as Markdown |
Emails sent through MCP are ordinary emails: they count toward your plan and appear in Email activity. The server speaks the Streamable HTTP transport, and requests count toward the same 120 per minute limit as the API.
Authentication and base URL
All endpoints live under https://mailumi.com/api/v1. Create a key in Dashboard → API keys, choose the permissions it needs and, if you like, restrict it to one domain or give it an expiry date. The full key is shown once; store it straight away.
Send the key in an Authorization: Bearer header from your backend, never from browser or mobile code. Give each key only the permissions it needs, or Full access for everything, including permissions added later. A write permission also allows reading what it manages. Revoke a key at any time in the dashboard.
Send a User-Agent header that names your app, for example yourapp/1.0. The network protection in front of the API blocks the default User-Agent of Python’s built-in urllib (Python-urllib/3.x): those requests get a 403 with Cloudflare error 1010 (browser_signature_banned) and never reach Mailumi. The Node.js SDK, Python’s requests and httpx, fetch and curl work as they are.
| Permission | What it allows |
|---|---|
email:send | Send, batch, schedule, reschedule and cancel emails. |
email:read | Read sent and received emails, their events and attachments. |
domains:read | List domains with their status and DNS records. |
domains:write | Add, verify, configure and remove domains. |
mailboxes:write | List, create, rename and delete mailboxes, and reset their passwords. Pro and Scale plans. |
webhooks:write | Create, test and disable webhooks, and read and retry their deliveries. |
templates:write | Create, edit and delete email templates. |
contacts:write | Create audiences and add, update and remove contacts. |
campaigns:write | Create, edit, duplicate, send and delete campaigns. |
suppressions:write | Read the suppression list and remove addresses from it. |
full_access | Everything above, and permissions added later. |
A key limited to one domain only sends from, reads and manages that domain: it cannot add domains, and it only sees the mailboxes, webhooks and campaigns of its domain. Templates, audiences and suppressions belong to the whole workspace. API keys cannot create or revoke API keys; only the dashboard can.
Send an email
Send a JSON body with from, to, subject, and text, html or both. The sender’s domain must be verified in your account. Optional fields are cc, bcc, reply_to, attachments, headers, tags and scheduled_at.
1POST https://mailumi.com/api/v1/emails2Authorization: Bearer YOUR_MAILUMI_API_KEY3Content-Type: application/json4Idempotency-Key: welcome-user-1235 6{7 "from": "Acme <hello@yourdomain.com>",8 "to": "alex@example.com",9 "subject": "Welcome aboard",10 "html": "<p>Your account is ready.</p>",11 "text": "Your account is ready.",12 "tags": [{ "name": "category", "value": "welcome" }]13}The response is the new email, with its id and status queued. Mailumi sends it within seconds and records every following event.
1{2 "id": "…",3 "object": "email",4 "domain_id": "…",5 "direction": "outbound",6 "from": "hello@yourdomain.com",7 "to": ["alex@example.com"],8 "subject": "Welcome aboard",9 "status": "queued",10 "last_event": "queued",11 "scheduled_at": null,12 "tags": { "category": "welcome" },13 "error": null,14 "created_at": "2026-10-06T09:00:00.000Z"15}The optional Idempotency-Key header (1–256 characters) protects against duplicates for 24 hours: if a request times out, repeat it with the same key and Mailumi returns the original email instead of sending twice. Reusing a key with different content returns 409.
An attachment is an object with filename, base64 content, an optional content_type and an optional content_id to show it inline in HTML with <img src="cid:…">. headers is an object of extra headers such as List-Unsubscribe. tags are up to 10 name and value pairs of letters, numbers, underscores and dashes; they are returned with the email and in every webhook event.
Send a batch
Send up to 100 emails in one request with POST /emails/batch and a JSON array of email objects. The batch is accepted or rejected as a whole: if one email is invalid or the batch exceeds your plan limit, nothing is sent and the error names the email. Batch emails cannot have attachments or scheduled_at.
1POST https://mailumi.com/api/v1/emails/batch2Authorization: Bearer YOUR_MAILUMI_API_KEY3Content-Type: application/json4 5[6 { "from": "hello@yourdomain.com", "to": "alex@example.com", "subject": "Your receipt", "text": "…" },7 { "from": "hello@yourdomain.com", "to": "sam@example.com", "subject": "Your receipt", "text": "…" }8]9 10→ { "data": [{ "id": "…" }, { "id": "…" }] }Schedule, reschedule and cancel
Add scheduled_at to send later, up to 30 days ahead. Use an ISO 8601 date such as 2026-10-07T09:00:00Z or plain English such as in 1 hour or in 3 days. The email gets the status scheduled until it is sent.
Change the time with PATCH /emails/:id and a new scheduled_at, or cancel with POST /emails/:id/cancel. Canceling returns the email to your plan allowance. Only scheduled emails that have not been sent can be changed.
Send with a template
Create a template in Dashboard → Templates or with POST /templates, using placeholders such as {{first_name}}, then pass its ID and the values instead of subject and html. Values are HTML-escaped, and any variable you leave out uses the fallback saved with the template. A subject in the request overrides the template’s subject.
1{2 "from": "Acme <hello@yourdomain.com>",3 "to": "alex@example.com",4 "template_id": "tpl_…",5 "variables": { "first_name": "Alex", "login_url": "https://app.acme.com" }6}Campaigns and contacts
Campaigns are newsletters and announcements sent to an audience, a list of contacts. Write and send them in Dashboard → Campaigns, or with POST /campaigns and POST /campaigns/:id/send. Each recipient counts as one email toward your plan, and every campaign email shows up in Email activity with its own delivery events.
- Add contacts in Dashboard → Audiences one by one, by pasting a list, or by importing a CSV from another tool. Columns named email, first name and last name are recognized automatically.
- Personalize the subject and message with
{{first_name}},{{last_name}}and{{email}}. - Every campaign email gets your workspace name, your postal address and an unsubscribe link in the footer, plus
List-UnsubscribeandList-Unsubscribe-Postheaders so Gmail, Yahoo and Apple Mail show their one-click unsubscribe button. Add the postal address in Dashboard → Settings. - An unsubscribe applies to the address in every audience of the workspace and fires the
email.unsubscribedwebhook event. Importing a list never resubscribes anyone, and suppressed addresses are skipped. - Campaigns are sent at a steady pace on a separate queue, so they never delay your transactional email.
Keep audiences in sync from your app with a key that has the contacts:write permission. Add one contact with an object, or import up to 1,000 at once with an array:
1curl -X POST https://mailumi.com/api/v1/audiences/aud_…/contacts \2 -H "Authorization: Bearer $MAILUMI_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{ "email": "alex@example.com", "first_name": "Alex" }'To unsubscribe someone who opted out in your app, send PATCH /audiences/:id/contacts/alex%40example.com with { "unsubscribed": true }. Only send campaigns to people who agreed to receive them.
Set up domains and webhooks with the API
Everything you can do in the dashboard also works with an API key, except creating and revoking API keys; the email in mailboxes is read and sent in webmail or a mail app. Use a key with Full access, or with domains:write and webhooks:write, to connect a domain and a webhook from a script, a deploy pipeline or an AI agent:
1# 1. Add the domain. The response lists the DNS records to publish.2curl -X POST https://mailumi.com/api/v1/domains \3 -H "Authorization: Bearer $MAILUMI_API_KEY" -H "Content-Type: application/json" \4 -d '{ "name": "mail.yourdomain.com" }'5 6# 2. Publish the records, then check them. "ready" is true once the domain can send.7curl -X POST https://mailumi.com/api/v1/domains/DOMAIN_ID/verify -H "Authorization: Bearer $MAILUMI_API_KEY"8 9# 3. Create a webhook. Store the secret it returns as MAILUMI_WEBHOOK_SECRET.10curl -X POST https://mailumi.com/api/v1/webhooks \11 -H "Authorization: Bearer $MAILUMI_API_KEY" -H "Content-Type: application/json" \12 -d '{ "name": "Production", "url": "https://yourapp.com/webhooks/mailumi", "events": ["email.delivered", "email.bounced", "email.complained"] }'Mailumi re-checks new domains every 5 minutes for 72 hours and emails the workspace owner as soon as one is verified, so a script does not have to keep checking. If it does, wait at least 15 seconds between checks. A record with a different value at the DNS provider shows what was found in its found field. A record entered with its full name at a provider that adds the domain itself ends up at a doubled name such as _mailumi.yourdomain.com.yourdomain.com: Mailumi finds it there, sets foundAt and explains in message which name to enter instead.
Mailboxes, templates, campaigns and suppressions work the same way. POST /mailboxes creates a mailbox and returns its password once. POST /templates saves a template to send with template_id. POST /campaigns creates a draft, GET /campaigns/:id lists anything missing before it can go out, and POST /campaigns/:id/send sends it. DELETE /suppressions/:address allows an address again. The endpoints table lists them all.
Endpoints
| Method & path | Permission | Purpose |
|---|---|---|
POST /emails | email:send | Send an email |
POST /emails/batch | email:send | Send up to 100 emails at once |
PATCH /emails/:id | email:send | Change the send time of a scheduled email |
POST /emails/:id/cancel | email:send | Cancel a scheduled email |
GET /emails | email:read | List sent and received email |
GET /emails/:id | email:read | Read one email with per-recipient status and its events |
GET /emails/:id/attachments/:index | email:read | Download an attachment |
GET /domains | domains:read | List your domains and their verification status |
GET /audiences | contacts:write | List audiences with contact counts |
POST /audiences | contacts:write | Create an audience |
PATCH /audiences/:id | contacts:write | Rename an audience |
DELETE /audiences/:id | contacts:write | Delete an audience and its contacts |
GET /audiences/:id/contacts | contacts:write | List or search contacts, 100 per page |
POST /audiences/:id/contacts | contacts:write | Add one contact, or import up to 1,000 |
GET /audiences/:id/contacts/:contact | contacts:write | Read a contact by ID or email address |
PATCH /audiences/:id/contacts/:contact | contacts:write | Change a name or unsubscribe |
DELETE /audiences/:id/contacts/:contact | contacts:write | Remove a contact |
GET /domains/:id | domains:read | Read one domain with each DNS record and what was found |
POST /domains | domains:write | Add a domain and get its DNS records |
POST /domains/:id/verify | domains:write | Check the DNS records now |
PATCH /domains/:id | domains:write | Turn receiving, open tracking or click tracking on or off |
DELETE /domains/:id | domains:write | Remove a domain |
GET /mailboxes | mailboxes:write | List mailboxes and the storage they share |
POST /mailboxes | mailboxes:write | Create a mailbox or catch-all; the response holds its password, once |
GET /mailboxes/:id | mailboxes:write | Read a mailbox |
PATCH /mailboxes/:id | mailboxes:write | Change the name it sends as, or whether forwarded email is kept |
POST /mailboxes/:id/password | mailboxes:write | Give a mailbox a new password |
POST /mailboxes/:id/forwards | mailboxes:write | Forward a mailbox to an outside address; the address confirms first |
DELETE /mailboxes/:id/forwards/:forward_id | mailboxes:write | Stop forwarding to an address |
DELETE /mailboxes/:id | mailboxes:write | Delete a mailbox and its mail |
GET /webhooks | webhooks:write | List webhooks |
POST /webhooks | webhooks:write | Create a webhook; the response holds its signing secret, once |
GET /webhooks/:id | webhooks:write | Read a webhook |
DELETE /webhooks/:id | webhooks:write | Disable a webhook |
POST /webhooks/:id/test | webhooks:write | Send a signed test event |
GET /webhooks/:id/deliveries | webhooks:write | The 100 most recent deliveries |
POST /webhooks/:id/deliveries/:delivery/retry | webhooks:write | Deliver an event again now |
GET /templates | templates:write | List templates |
POST /templates | templates:write | Create a template |
GET /templates/:id | templates:write | Read a template |
PATCH /templates/:id | templates:write | Change a template |
DELETE /templates/:id | templates:write | Delete a template |
GET /campaigns | campaigns:write | List campaigns with delivery statistics |
POST /campaigns | campaigns:write | Create a draft campaign |
GET /campaigns/:id | campaigns:write | Read a campaign with its readiness or results |
PATCH /campaigns/:id | campaigns:write | Change a draft |
DELETE /campaigns/:id | campaigns:write | Delete a campaign |
POST /campaigns/:id/send | campaigns:write | Send a draft to its audience now |
POST /campaigns/:id/duplicate | campaigns:write | Copy a campaign into a new draft |
GET /suppressions | suppressions:write | List suppressed addresses; filter with search |
DELETE /suppressions/:address | suppressions:write | Allow sending to an address again |
Paths are relative to https://mailumi.com/api/v1. Filter the list with direction=inbound or direction=outbound. Results come 50 at a time as { "data": […], "next_cursor": … }; pass next_cursor as the before parameter to load the next page.
The OpenAPI 3.1 description lists every endpoint with its operation ID, request and response schemas and errors. Use it to generate a client or to give an AI agent the API as function calls.
Statuses and events
Every email has a status and a last_event, and each recipient has its own status. GET /emails/:id returns the full event history.
| Event | When |
|---|---|
email.sent | The email left Mailumi for the recipient’s mail server |
email.delivered | The recipient’s mail server accepted it |
email.delivery_delayed | The receiving server is temporarily refusing it and delivery is being retried |
email.bounced | The address does not exist or refused the email; hard bounces are suppressed |
email.complained | The recipient marked the email as spam; the address is suppressed |
email.opened | The recipient opened the email (open tracking on, Pro and Scale) |
email.clicked | The recipient clicked a link (click tracking on, Pro and Scale) |
email.failed | The email could not be sent; the reason is included |
email.unsubscribed | The recipient unsubscribed from a campaign, by its link or the email app’s unsubscribe button |
email.received | An email arrived on one of your receiving domains |
On Pro and Scale, turn on open and click tracking per domain in Dashboard → Domains; both are off by default. Addresses that hard-bounce or complain are added to your suppression list, in Dashboard → Suppressions and GET /suppressions. Later emails to them are accepted but not sent, do not count toward your plan, and show the recipient status suppressed.
Webhooks
Add an HTTPS endpoint in Dashboard → Webhooks, or with POST /webhooks, and choose its events. Each delivery is a JSON object with id, type, created_at and data. For events about email you sent, data is the email as it is now, with its ID in email_id, plus the fields in the table below. Incoming email has its own payload with the content and attachments; see Receiving email. Press Send test for a webhook.test event, whose data is { "message": "…" }.
1{2 "id": "…",3 "type": "email.delivered",4 "created_at": "2026-10-06T09:00:04.000Z",5 "data": {6 "email_id": "…",7 "domain_id": "…",8 "direction": "outbound",9 "from": "hello@yourdomain.com",10 "to": ["alex@example.com"],11 "subject": "Welcome aboard",12 "status": "delivered",13 "last_event": "delivered",14 "scheduled_at": null,15 "tags": { "category": "welcome" },16 "error": null,17 "created_at": "2026-10-06T09:00:00.000Z",18 "recipient": "alex@example.com",19 "delivery": { "smtp_response": "250 2.0.0 OK" }20 }21}| Event | Extra fields in data |
|---|---|
email.sent | None |
email.delivered | recipient, delivery.smtp_response |
email.delivery_delayed | recipient, delay.type, delay.expires_at, delay.message |
email.bounced | recipient, bounce.type (Permanent or Transient), bounce.sub_type, bounce.message |
email.complained | recipient, complaint.type |
email.opened | open.ip_address, open.user_agent, and recipient when the email has one recipient |
email.clicked | click.link, click.ip_address, click.user_agent, and recipient when the email has one recipient |
email.failed | failed.reason |
email.unsubscribed | recipient |
Detail values are strings, or null when the receiving server did not provide them.
Mailumi signs every delivery with the Standard Webhooks format, so any Standard Webhooks library can verify it. Read the raw body before parsing JSON, compute HMAC-SHA256 over webhook-id.webhook-timestamp.body with the base64-decoded part of your whsec_ secret, and compare it in constant time with the value after v1,. Reject old timestamps and store event IDs so you process each event once.
1// npm install mailumi2import { verifyWebhook } from 'mailumi';3 4// Pass the raw body before parsing JSON: the signature covers the exact bytes.5const { data: event, error } = await verifyWebhook({6 payload: await request.text(),7 headers: request.headers,8 secret: process.env.MAILUMI_WEBHOOK_SECRET, // whsec_…9});10if (error) return new Response('Invalid signature', { status: 401 });11 12// Save event.id with a unique constraint so each event is processed once.13await saveEventOnce(event.id, event);14return new Response('OK');1import base64, hashlib, hmac, json, os, time2 3def verify_mailumi_webhook(raw_body: bytes, headers) -> dict:4 msg_id = headers.get("webhook-id", "")5 timestamp = headers.get("webhook-timestamp", "")6 signatures = headers.get("webhook-signature", "").split(" ")7 if not msg_id or not timestamp.isdigit() or abs(time.time() - int(timestamp)) > 300:8 raise ValueError("Invalid signature")9 # The secret looks like whsec_…; the key is the base64 part after the prefix.10 key = base64.b64decode(os.environ["MAILUMI_WEBHOOK_SECRET"].removeprefix("whsec_"))11 signed = f"{msg_id}.{timestamp}.".encode() + raw_body12 expected = base64.b64encode(hmac.new(key, signed, hashlib.sha256).digest()).decode()13 if not any(s.startswith("v1,") and hmac.compare_digest(s[3:], expected) for s in signatures):14 raise ValueError("Invalid signature")15 return json.loads(raw_body)Respond with any 2xx status within eight seconds. If your endpoint fails, Mailumi retries automatically with increasing delays, up to ten attempts within 24 hours, using the same event ID. Every attempt is visible in the dashboard and with GET /webhooks/:id/deliveries; retry one by hand there or with POST /webhooks/:id/deliveries/:delivery/retry.
Receiving email
Mailumi receives email for a verified domain and posts each message to your webhook as an email.received event. In Dashboard → Domains, open the domain, turn on Receive email (or send PATCH /domains/:id with { "receiving_enabled": true, "mx_consent": true }) and add the MX record it shows: inbound-smtp.eu-west-1.amazonaws.com with priority 10. MX records decide where all mail for a domain goes. If a mailbox such as Google Workspace or Microsoft 365 already receives mail for your domain, add a subdomain such as inbox.yourdomain.com and receive there instead.
Then add a webhook in Dashboard → Webhooks with the email.received event. You can limit it to one domain, and to one address by the part before @, such as support. Verify the signature as described under Webhooks. Each received email arrives like this:
1{2 "id": "…",3 "type": "email.received",4 "created_at": "2026-10-06T09:12:03.000Z",5 "data": {6 "email_id": "…",7 "domain_id": "…",8 "direction": "inbound",9 "from": "Sam Sender <sam@example.org>",10 "to": ["support@yourdomain.com"],11 "subject": "Order 1042 has not arrived",12 "status": "received",13 "last_event": "received",14 "scheduled_at": null,15 "tags": {},16 "error": null,17 "created_at": "2026-10-06T09:12:01.000Z",18 "cc": [],19 "reply_to": [],20 "message_id": "<a1b2c3@example.org>",21 "text": "Hi, my order has not arrived yet.",22 "html": "<p>Hi, my order has not arrived yet.</p>",23 "spam": false,24 "attachments": [25 {26 "id": "0",27 "filename": "receipt.pdf",28 "content_type": "application/pdf",29 "content_id": null,30 "size": 48213,31 "download_url": "https://mailumi.com/api/v1/emails/…/attachments/0"32 }33 ]34 }35}| Field in data | Type | Value |
|---|---|---|
email_id | string | The email ID, for GET /emails/:id and attachment downloads |
domain_id | string | The domain that received it |
direction, status, last_event | string | Always inbound, received and received |
from | string | The sender as Name <address>, or only the address when there is no name |
to | string[] | The recipients at this domain, in lowercase |
cc | string[] | Copied addresses; empty when there are none |
reply_to | string[] | The Reply-To addresses. When you answer, reply to these if there are any, otherwise to from |
subject | string | The subject; an empty string when there is none |
message_id | string or null | The Message-ID header with its angle brackets. Put it in In-Reply-To and References when you reply |
text | string | The plain-text body; an empty string when the email has none |
html | string | The HTML body; an empty string when the email has none. It is the sender’s HTML, so sanitize it before showing it in a browser |
spam | boolean | true when the Amazon SES spam check flagged the email, otherwise false |
attachments | object[] | Each has id, filename, content_type, content_id (string or null; set for inline images), size in bytes and download_url |
scheduled_at, error | null | Always null for received email |
tags | object | Always {} for received email |
created_at | string | When Mailumi received the email, in ISO 8601 |
Download an attachment from your server: send GET to its download_url with Authorization: Bearer and a key that has email:read. Never pass that URL or key to a browser. GET /emails/:id returns the same email with all its headers. Email that fails the virus check is never delivered, and messages over 30 MB are discarded. Received email does not count toward your plan; its content and attachments are deleted after 30 days. The copy in a mailbox stays until it is deleted there.
Limits and errors
| Limit | Value |
|---|---|
| Recipients (to, cc and bcc) | 50 per email |
| Batch | 100 emails per request |
| Attachments | 20 per email, 10 MB in total |
| Text and HTML combined | 500 KB |
| Request body | 15 MB |
| Scheduling | Up to 30 days ahead |
| API requests | 120 per minute per key |
| Requests with a missing or invalid key | 30 per minute per IP address |
| Audiences | 100 per workspace, 100,000 contacts each |
| Contact import | 1,000 contacts per request |
| Free plan | 1,500 emails per month, 50 per day |
| SMTP, open and click tracking | Pro and Scale plans |
| Mailboxes and webmail | 10 GB on Pro, 50 GB on Scale |
| Mailbox message size | 30 MB |
| Mailbox forwarding | 5 addresses per mailbox, 500 forwarded emails and 20 confirmation emails per workspace per day |
Errors are JSON with a message that explains what to fix and a machine-readable code, for example { "error": "Send to no more than 50 recipients per email.", "code": "invalid_request" }.
| Status | Code | Meaning |
|---|---|---|
400 | invalid_request | The request is invalid; the message explains what to fix |
401 | unauthorized | The API key is missing, invalid, expired or revoked |
402 | plan_limit_reached | Your plan’s sending limit is reached |
403 | forbidden | The key lacks the permission, the domain is not verified, or the key may not use this domain |
404 | not_found | The email, attachment, domain, mailbox, template, audience, contact or endpoint was not found |
409 | conflict | The idempotency key was already used with different content, the email can no longer be changed, a campaign is being sent to the audience, the mailbox already exists, or the mailbox already forwards to the address |
413 | payload_too_large | The request body is larger than 15 MB, or a contact import is larger than 1 MB |
429 | rate_limited | Too many requests; wait the number of seconds in Retry-After |
503 | service_unavailable | A temporary problem; retry with the same idempotency key |
A 403 whose JSON has "error_name": "browser_signature_banned" instead of code comes from the network protection, not from the API: send a User-Agent header that names your app, as described under Authentication.
Every API response includes RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds), so your code can slow down before it hits the limit. A 429 response also includes Retry-After.
Each recipient counts as one email toward your plan. Incoming email does not count. See delivery monitoring for what each delivery status means.
Versioning and deprecation policy
The version is part of the path: /api/v1. Version 1 gets no breaking changes. New endpoints, new optional request fields, new response fields and new event types can be added at any time, so ignore fields you do not know.
A breaking change only ships in a new version, such as /api/v2. When that happens, version 1 keeps working for at least 12 months after the new version is released. Every workspace owner gets an email at least 6 months before an endpoint is retired, and responses from a deprecated endpoint carry a Deprecation header and a Sunset header with the retirement date.