Best Inbound Email API for Indie Developers (2026)
Receiving email in your app means picking a service that accepts mail on your domain and hands it to your code. Postmark gives the cleanest JSON, Cloudflare Email Routing costs nothing if your DNS is on Cloudflare, and Amazon SES is the cheapest per message at scale. Here is how eight options compare on price, payload format, attachments and webhook security, checked on 24 Nov 2026.

Key takeaways
- Postmark lists inbound processing on its Pro plan ($16.50/mo for 10,000 emails) and Platform plan, posts parsed JSON with a StrippedTextReply field, and counts each processed inbound message as 1 email.
- Amazon SES receiving costs $0.10 per 1,000 emails plus $0.09 per 1,000 incoming 256 KB chunks, so 100,000 small emails a month works out to about $19 in SES fees (our example).
- Cloudflare Email Routing is available on Free and Paid plans and lets an Email Worker read the raw MIME stream, reject, forward or reply, but plan on using Cloudflare DNS for the domain.
- Resend supports receiving: webhooks carry metadata only, attachments come from an API with download URLs valid for 1 hour, and each received email counts toward your sending quota.
- Never trust the From header. Verify the webhook (HMAC, ECDSA, Svix or an Authorization header depending on the vendor), cap sizes, and use a secret token in the reply address.
On this page 24
- TL;DR
- What "inbound email API" means
- Comparison at a glance
- The options in detail
- Postmark Inbound
- Mailgun Routes
- SendGrid Inbound Parse
- Amazon SES receiving
- Cloudflare Email Routing and Email Workers
- Resend receiving
- CloudMailin
- AgentMail and agent inboxes
- Cost worked examples: 1k, 10k and 100k inbound emails a month
- Security checklist for inbound email
- Sample webhook handler (Postmark, Node.js)
- Decision table
- Frequently asked questions
- What is the cheapest inbound email API?
- Which inbound email API gives me clean JSON?
- How do I verify that an inbound email webhook is genuine?
- Can I build reply-by-email with these APIs?
- What should I use for an AI agent inbox?
- Launch what you built
- Sources
Short answer: For most solo developers the best inbound email API is Postmark on its Pro plan, because it posts clean JSON, strips quoted replies for you and costs $16.50/mo for 10,000 emails. If your budget is $0 and your DNS is already on Cloudflare, use Cloudflare Email Routing with an Email Worker. If you expect high volume and are comfortable on AWS, Amazon SES receiving is the cheapest per message.
Every price, limit and field name below comes from the vendor's own pages, checked on 24 Nov 2026. Advice and example arithmetic are ours and are labelled.
TL;DR#
- Postmark: inbound on Pro ($16.50/mo, 10,000 emails) and Platform (pricing).
- Amazon SES: $0.10 per 1,000 received plus $0.09 per 1,000 256 KB chunks (SES pricing).
- Cloudflare Email Routing: free plans included, plan on Cloudflare DNS (docs).
- Mailgun: 1 inbound route free, full routing on Foundation ($35/mo) (pricing).
- Resend, CloudMailin, AgentMail: all have free tiers; details below.
Disclosure: ZeroRaised publishes this guide and is a launch site for bootstrapped products. We have no commercial relationship with any vendor named here and earn nothing if you sign up. Facts come from the linked sources as checked on 24 Nov 2026.
What "inbound email API" means#
You point an MX record for a domain or subdomain at a provider. It accepts the mail, runs spam and authentication checks, parses the MIME and sends the result to your code, usually as an HTTP POST. Typical indie uses: reply-by-email on notifications, a support inbox, parsing forwarded receipts, and AI agent inboxes.
If you are also choosing a provider for sending, our Resend vs Postmark comparison covers the outbound side. This post is only about receiving.
Comparison at a glance#
| Service | Free option | Entry paid price | Payload | Attachments | Webhook verification |
|---|---|---|---|---|---|
| Postmark | Free plan, 100 emails/mo (inbound listed on Pro and Platform) | Pro $16.50/mo for 10,000 emails | JSON | Base64 in JSON, 35 MB total | Basic Auth + IP allowlist, no HMAC |
| Mailgun | 100 emails per day, 1 inbound route | Basic $15/mo, 5 routes | Form or multipart; JSON if destination ends in json | attachment-N fields or JSON array | HMAC-SHA256 |
| SendGrid Inbound Parse | Free trial, no card (plan details not verified) | Not verified today | multipart/form-data, optional raw MIME | Form parts, 30 MB message | ECDSA signature, OAuth or both |
| Amazon SES | Up to $200 Free Tier credits for new AWS customers | $0.10/1,000 + $0.09/1,000 chunks | Raw MIME via SNS, S3 or Lambda | You parse MIME; SNS max 150 KB | AWS-native (SNS/S3/Lambda) |
| Cloudflare Email Routing | Free and Paid plans | Workers Paid for higher CPU limits | Raw MIME stream in a Worker | You parse; 25 MiB message | Runs inside your Worker |
| Resend | 3,000 emails/mo, 100 per day | Pro $20/mo for 50,000 | JSON webhook, metadata only | Attachments API, URL valid 1 hour | Svix signature |
| CloudMailin | 10,000 emails/mo, 512 KB each | Starter $25/mo, 2 MB each | JSON (Normalized) and others | Base64 or attachment store URL | HTTPS + Authorization header |
| AgentMail | 3 inboxes, 3,000 emails/mo | Developer $20/mo, 10 inboxes | Events via webhook or WebSocket | Not covered here | Not covered here |
The options in detail#
Postmark Inbound#
Postmark's pricing page lists inbound email processing on Pro ($16.50/mo) and Platform ($18/mo), both starting at 10,000 emails a month, with overage at $1.30 and $1.20 per 1,000. Basic ($15/mo) does not list it, and the free plan is 100 emails a month with no overage (Postmark pricing). Inbound and outbound share one allowance: "a processed Inbound message all count as 1 email" (Postmark monthly pricing).
The JSON payload includes FromFull, Subject, TextBody, HtmlBody, MailboxHash (the part after + in the recipient, ideal for reply tokens) and StrippedTextReply, which Postmark says is "limited to English text replies". SpamAssassin scores and Received-SPF sit in the Headers array; Postmark accepts spam by default. Attachments are base64, and "Total cumulative size for all Inbound attachment files may not exceed 35 MB" (Postmark parse an email).
Without a 200 response Postmark retries up to 10 times, and a 403 stops retries (Postmark inbound webhook). "Postmark does not currently support HMAC webhook signature verification"; it recommends Basic Auth plus IP allowlisting (Postmark webhooks).
Our read: the easiest integration here; offset the missing HMAC with a long random Basic Auth password over HTTPS.
Mailgun Routes#
Mailgun's free plan includes "1 inbound route" alongside 100 emails per day. Basic (from $15/mo, 10,000 emails) has "5 inbound routes", and Foundation ($35/mo, 50,000 emails) has "Full access to inbound routing" (Mailgun pricing).
Routes post form data (multipart with attachments), or JSON if the destination ends in json, including stripped-text and stripped-html with quoted parts removed. Other than 200 or 406, responses are retried for "a total of 8 hours" (Mailgun receive HTTP). You verify with HMAC-SHA256 of timestamp plus token (Mailgun securing webhooks).
Our read: real signatures, and one free route covers a catch-all prototype.
SendGrid Inbound Parse#
Inbound Parse posts multipart/form-data by default, or raw MIME if you tick that option, after you point an MX record for a dedicated hostname at mx.sendgrid.net. Fields include SPF, dkim and spam_score, and messages should stay under 30 MB (Twilio Inbound Parse setup). Security policies support ECDSA signature verification, OAuth or both, and "At least one of the two security methods is required" (Securing Parse webhooks).
We could not verify SendGrid plan prices or Inbound Parse plan availability today, so they are left out.
Amazon SES receiving#
SES charges "$0.10 / 1,000 emails" received plus "$0.09 for every 1,000 incoming email chunks", where a chunk is 256 KB (SES pricing). Receiving only works in certain AWS Regions, listed in AWS's Email Receiving endpoints table (SES receiving).
Receipt rules deliver raw MIME to S3, SNS, Lambda or WorkMail. Via SNS, "the maximum email size (including headers) is 150 KB. Larger emails will bounce", so use S3 for attachments (SES SNS action). Notifications carry spam, virus, SPF, DKIM and DMARC verdicts (SES notification contents).
Our read: cheapest at scale, but you wire up S3, Lambda and IAM yourself, and their costs are extra.
Cloudflare Email Routing and Email Workers#
Email Routing is "Available on Free and Paid plans" (Cloudflare Email Routing). Cloudflare's setup guide says "You must be using Cloudflare DNS to use Email Service" (enable Email Routing); that line is written for Email Service, so our advice is to plan on Cloudflare DNS for Email Routing too and confirm in the dashboard. Messages can be up to 25 MiB, and Email Workers use standard Workers CPU limits, so heavy handlers on Workers Free can fail with "EXCEEDED_CPU" (limits). A Worker gets from, to, headers, a raw MIME stream and rawSize, and can call setReject(), forward() or reply() (runtime API).
Our read: the best $0 option. There is no vendor webhook to verify, but you parse MIME yourself and sign your own request to your app.
Resend receiving#
Resend does receive email, on a custom domain (via an MX record) or on a managed <id>.resend.app address (Resend receiving). Webhooks "do not include the actual content of attachments, only their metadata"; you call the Attachments API for a download_url valid for 1 hour (Resend attachments). Webhooks are signed with Svix headers (Resend verify webhooks).
Pricing: Free is 3,000 emails a month capped at 100 per day, and Pro is $20/mo for 50,000 or $35/mo for 100,000. "Each received email counts towards your transactional emails quota" (Resend pricing).
Our read: the shortest path if you already send with Resend.
CloudMailin#
CloudMailin's free plan is "10,000 emails/mo · 512KB per message · No card required". Starter is $25/mo for 10,000 emails at 2 MB per message, Professional $45/mo for 20,000 at 10 MB, Premium $85/mo for 40,000 at 50 MB (CloudMailin plans). Its JSON (Normalized) format includes an envelope spf result, headers, plain, html, reply_plain, and attachments as base64 or a storage URL (CloudMailin JSON format). It recommends HTTPS with an Authorization header and calls signed requests deprecated (CloudMailin securing).
Our read: a generous free volume, but 512 KB rules out most attachments.
AgentMail and agent inboxes#
AgentMail creates inboxes by API and pushes events such as message.received by webhook or WebSocket, with extracted_text and extracted_html reply fields and Python and TypeScript SDKs (AgentMail docs, quickstart). Free is 3 inboxes and 3,000 emails a month, Developer $20/mo for 10 inboxes and 10,000 emails, Startup $200/mo for 150 inboxes with 15,000 emails per day (AgentMail pricing).
Our read: worth it when each agent or user needs its own inbox. For one support address, a general inbound API is cheaper.
Cost worked examples: 1k, 10k and 100k inbound emails a month#
Example only, our arithmetic from published prices. Assumes inbound only (no outbound sharing the allowance), every email under 256 KB, and entry tiers plus published overage. Vendors' higher tiers may be cheaper.
| Service | 1,000/mo | 10,000/mo | 100,000/mo |
|---|---|---|---|
| Amazon SES (fees only) | $0.19 | $1.90 | $19.00 |
| Cloudflare Email Routing | $0 | $0 | $0 (Workers limits apply) |
| Postmark Pro | $16.50 | $16.50 | $16.50 + 90,000 × $1.30/1,000 = $133.50 |
| Resend | $0 (Free) | $20 (Pro 50k) | $35 (Pro 100k) |
| CloudMailin | $0 (512 KB cap) | $0, or $25 Starter for 2 MB | Corporate, from $200 |
| AgentMail | $0 (Free) | $20 (Developer) | $200 (Startup) |
Mailgun is left out because its plans are priced by sent volume and we could not confirm how inbound counts. SendGrid is left out because we could not verify its prices today.
Security checklist for inbound email#
Inbound email is untrusted input from the whole internet. Our checklist:
- Verify the webhook with the vendor's mechanism, against the raw body (Twilio warns that frameworks which parse multipart first can break validation).
- Never trust
From:. Anyone can type any From address. Put a random per-thread token in the reply address (reply+TOKEN@) and treat the token as the credential; SPF, DKIM and DMARC verdicts are extra signals, not proof. - Strip quoted replies with
StrippedTextReply,stripped-textorreply_plain, falling back to full text when empty. - Cap sizes: body parser limits, attachment count and allowed content types.
- Sanitise HTML before rendering, and never auto-open attachments.
- Be idempotent. Postmark and Mailgun both retry, so dedupe on the message ID.
- Ack fast, process later in a queue. Our webhook service guide covers queues and retries.
- Use a dedicated subdomain such as
inbound.yourapp.com, as SendGrid advises.
Sample webhook handler (Postmark, Node.js)#
This Express handler checks Basic Auth, validates the reply token and uses the stripped reply. Field names are from Postmark's docs; the lookup functions are yours.
import express from "express";
import crypto from "node:crypto";
const app = express();
// Attachments can total 35 MB before base64, so allow headroom
app.use("/inbound/postmark", express.json({ limit: "50mb" }));
function safeEqual(a, b) {
const x = Buffer.from(a);
const y = Buffer.from(b);
return x.length === y.length && crypto.timingSafeEqual(x, y);
}
app.post("/inbound/postmark", async (req, res) => {
const expected =
"Basic " + Buffer.from(process.env.INBOUND_USER + ":" + process.env.INBOUND_PASS).toString("base64");
if (!safeEqual(req.get("authorization") || "", expected)) {
return res.status(403).end(); // Postmark stops retrying on 403
}
const mail = req.body;
if (await alreadyProcessed(mail.MessageID)) return res.status(200).end();
// reply+TOKEN@inbound.yourapp.com -> MailboxHash = TOKEN
const thread = await findThreadByReplyToken(mail.MailboxHash);
if (!thread) return res.status(200).end(); // accept and drop unknown tokens
const spf = (mail.Headers || []).find((h) => h.Name === "Received-SPF");
const text = (mail.StrippedTextReply || mail.TextBody || "").slice(0, 20000);
await enqueueReply({
threadId: thread.id,
claimedFrom: mail.FromFull?.Email, // display only, never auth
spf: spf?.Value,
text,
attachments: (mail.Attachments || []).slice(0, 10).map((a) => ({
name: a.Name,
type: a.ContentType,
bytes: a.ContentLength,
content: a.Content, // base64
})),
});
res.status(200).end();
});
Decision table#
Our editorial picks, based on the facts above.
| Your situation | Our pick |
|---|---|
| Reply-by-email in a SaaS, want the least code | Postmark Pro |
| $0 budget, DNS already on Cloudflare | Cloudflare Email Routing + Email Worker |
| High volume, comfortable with AWS | Amazon SES to S3 + Lambda |
| Already sending with Resend | Resend receiving |
| Already on Mailgun, want signed payloads | Mailgun Routes |
| Parsing small text-only mail (alerts, forms) for free | CloudMailin free plan |
| One inbox per agent or per user | AgentMail |
Frequently asked questions#
What is the cheapest inbound email API?#
Cloudflare Email Routing is available on Free plans, but plan on Cloudflare DNS and you parse mail yourself in a Worker. Among metered services, Amazon SES charges $0.10 per 1,000 received emails plus $0.09 per 1,000 incoming 256 KB chunks. CloudMailin's free plan includes 10,000 emails a month, but with a 512 KB per message limit.
Which inbound email API gives me clean JSON?#
Postmark posts a JSON payload with From, To, Subject, TextBody, HtmlBody, a StrippedTextReply field and base64 attachments. CloudMailin and Mailgun also offer JSON. SendGrid defaults to multipart/form-data, and SES and Cloudflare give you raw MIME.
How do I verify that an inbound email webhook is genuine?#
It depends on the vendor. Mailgun signs with HMAC-SHA256 over timestamp and token. SendGrid Inbound Parse supports ECDSA signature verification, OAuth or both. Resend uses Svix headers. Postmark does not support HMAC signatures and recommends Basic Auth plus IP allowlisting. CloudMailin recommends HTTPS with an Authorization header.
Can I build reply-by-email with these APIs?#
Yes. Give each conversation a reply address with a secret token, such as reply+token@yourdomain, and look the token up when mail arrives. Postmark exposes it as MailboxHash. Treat the token, not the From header, as the proof of who replied.
What should I use for an AI agent inbox?#
AgentMail is built for it, with inboxes created by API. Its free plan has 3 inboxes and 3,000 emails a month, and Developer is $20/mo for 10 inboxes and 10,000 emails. If you only need one address, a general inbound API is enough.
Launch what you built#
ZeroRaised is a launch directory for products built without institutional VC. Before launch, add reply-by-email to your product launch checklist, because it breaks quietly under launch traffic. Then submit your product for free. For more developer tool comparisons for bootstrapped makers, join the ZeroRaised newsletter.
Sources#
- Postmark pricing, last checked 24 Nov 2026
- Postmark: how does monthly pricing work, last checked 24 Nov 2026
- Postmark: parse an inbound email, last checked 24 Nov 2026
- Postmark webhooks overview, last checked 24 Nov 2026
- Mailgun pricing, last checked 24 Nov 2026
- Mailgun: receive via HTTP, last checked 24 Nov 2026
- Mailgun: securing webhooks, last checked 24 Nov 2026
- Twilio SendGrid: setting up Inbound Parse, last checked 24 Nov 2026
- Twilio SendGrid: securing Parse webhooks, last checked 24 Nov 2026
- Amazon SES pricing, last checked 24 Nov 2026
- Amazon SES email receiving, last checked 24 Nov 2026
- Amazon SES SNS action, last checked 24 Nov 2026
- Amazon SES notification contents, last checked 24 Nov 2026
- Cloudflare Email Routing, last checked 24 Nov 2026
- Cloudflare Email Routing limits, last checked 24 Nov 2026
- Cloudflare: enable Email Routing, last checked 24 Nov 2026
- Cloudflare Email Workers runtime API, last checked 24 Nov 2026
- Resend: receiving emails, last checked 24 Nov 2026
- Resend: inbound attachments, last checked 24 Nov 2026
- Resend: verify webhooks, last checked 24 Nov 2026
- Resend pricing, last checked 24 Nov 2026
- CloudMailin plans, last checked 24 Nov 2026
- CloudMailin JSON (Normalized) format, last checked 24 Nov 2026
- CloudMailin: securing your HTTP target, last checked 24 Nov 2026
- AgentMail docs, last checked 24 Nov 2026
- AgentMail quickstart, last checked 24 Nov 2026
- Postmark inbound webhook, last checked 24 Nov 2026
- AgentMail pricing, last checked 24 Nov 2026
Frequently asked questions
What is the cheapest inbound email API?
Cloudflare Email Routing is available on Free plans, but plan on Cloudflare DNS and you parse mail yourself in a Worker. Among metered services, Amazon SES charges $0.10 per 1,000 received emails plus $0.09 per 1,000 incoming 256 KB chunks. CloudMailin's free plan includes 10,000 emails a month, but with a 512 KB per message limit.
Which inbound email API gives me clean JSON?
Postmark posts a JSON payload with From, To, Subject, TextBody, HtmlBody, a StrippedTextReply field and base64 attachments. CloudMailin and Mailgun also offer JSON. SendGrid defaults to multipart/form-data, and SES and Cloudflare give you raw MIME.
How do I verify that an inbound email webhook is genuine?
It depends on the vendor. Mailgun signs with HMAC-SHA256 over timestamp and token. SendGrid Inbound Parse supports ECDSA signature verification, OAuth or both. Resend uses Svix headers. Postmark does not support HMAC signatures and recommends Basic Auth plus IP allowlisting. CloudMailin recommends HTTPS with an Authorization header.
Can I build reply-by-email with these APIs?
Yes. Give each conversation a reply address with a secret token, such as reply+token@yourdomain, and look the token up when mail arrives. Postmark exposes it as MailboxHash. Treat the token, not the From header, as the proof of who replied.
What should I use for an AI agent inbox?
AgentMail is built for it, with inboxes created by API. Its free plan has 3 inboxes and 3,000 emails a month, and Developer is $20/mo for 10 inboxes and 10,000 emails. If you only need one address, a general inbound API is enough.