Best inbound email APIs in 2026: receive and parse email
Eight ways to receive email in code, read from each provider's own docs on November 26, 2026: how mail reaches you, whether it is kept and queryable later, what the parsed payload holds, retries, signatures, IMAP and the free tier.
By Arin Prajapati, founder, 8 min read
On this page (7)
The best inbound email API depends on whether you need a webhook or an inbox. If your code only has to react to each email once, Postmark Inbound, Mailgun Routes, SendGrid Inbound Parse, Amazon SES or Cloudflare Email Workers parse incoming mail and hand it over. If your app must read mail again later, list it, follow threads or open it in a mail client, pick a product that stores it: AgentMail, Resend receiving or Runearc. All eight can also send.
Checked on 2026-11-26. Every fact about another product below comes from that product's own docs or pricing page, read on that date and numbered in the sources. We make Runearc, so products are grouped by how they receive and listed alphabetically in each group, not ranked.
Webhook only, or a real inbox you can query later
Every inbound email API does the same first step. You point your domain's MX record at it, or use an address it gives you. It accepts the message, decodes the MIME parts and turns them into fields. What happens next splits the market in two.
- Webhook only. The parsed message is posted to your URL once. Your code saves what it needs. If your server was down past the last retry, or you did not store a field, the message is gone or has to be dug out of logs. This is the right shape for one-shot jobs: turn a reply into a comment, open a ticket, run a parser on an invoice.
- A stored inbox. The provider keeps the message. The webhook is a notification, and the message stays where you can list it, fetch it by id, page through a thread or search. Nothing is lost when your handler has a bug, and a second service can read the same mail a week later.
Some webhook products keep a copy for a while: Postmark for 45 days by default [3], Mailgun for up to 3 days [8]. That is a buffer for retries and debugging, not a mailbox with threads. Our email API vs inbox API post covers the same split from the sending side.
What to check in an inbound email API
- Payload format. JSON, form data, or the raw MIME message you parse yourself.
- Storage. Whether the message is kept, how long, and whether an API can list and fetch it.
- Parsing. Text and HTML bodies, headers, attachments (inline in the payload or as a download), reply text with the quoted history removed, and threading.
- Domain. Your own domain by MX record, a provider address, or both.
- IMAP. Whether a person can open the same mail in Apple Mail or Thunderbird.
- Retries and signatures. How long a failed delivery is retried, and how you prove the request came from the provider.
- Sending and price. Whether replies go out from the same product, and what receiving costs.
The options
Webhook first
Amazon SES receiving routes mail with receipt rules to S3, SNS, Lambda or WorkMail [35]. The S3 action stores the raw message up to 40 MB [36]; the SNS action sends it inline but bounces anything over 150 KB [37]. The notification is JSON with SPF, DKIM, DMARC, spam and virus verdicts, but the body is raw MIME you parse yourself [38]. SNS messages are signed [39]. Receiving costs $0.10 per 1,000 emails plus $0.09 per 1,000 incoming 256 KB chunks [40]. It is the cheapest here per message and the most assembly.
Cloudflare Email Routing with Email Workers runs your Worker for each message, with the raw MIME stream, and lets it forward, reply or reject; Cloudflare suggests postal-mime to parse it [24]. Messages up to 25 MiB are accepted [25], and the domain must use Cloudflare DNS [26]. Routing is free and unlimited [27]. Storage is yours to build, for example in your own database. Sending to any recipient is in public beta on Workers Paid, with 3,000 emails included and then $0.35 per 1,000 [27] [28]. See our Cloudflare Email Routing alternatives.
Mailgun Routes match incoming mail and forward it to a URL, store it, or stop [7]. The payload is JSON when your URL ends in json, otherwise form data, and includes stripped-text and stripped-signature fields [6]. Stored messages are kept for up to 3 days [8]. Failed posts are retried over 8 hours, and each request carries an HMAC SHA256 signature [6] [9]. The free plan has 1 inbound route at 100 emails a day; Basic is $15 a month with 5 routes [10]. More in Mailgun alternatives.
Postmark Inbound posts clean JSON with a StrippedTextReply field, headers and base64 attachments, to an address like hash@inbound.postmarkapp.com or to your own domain [1] [2]. Failed posts are retried 10 times over about 10 hours [2]. Inbound messages can be searched through the messages API for 45 days by default, configurable from 7 to 365 [3]. Postmark protects webhooks with basic auth and an IP allowlist, not an HMAC signature [4]. Inbound starts on Pro, $16.50 a month for 10,000 emails [5]. See Postmark alternatives.
SendGrid Inbound Parse posts multipart form data to your URL, or the raw MIME message if you ask, with SPF and DKIM results and an optional spam score [11]. Messages up to 30 MB are accepted, and posts that get a 5xx are retried for up to 3 days [12]. Requests can be signed with ECDSA or carry an OAuth token [13]. The docs do not describe storing mail. The free trial is 100 emails a day for 60 days [14]. See SendGrid alternatives.
A stored inbox
AgentMail gives each AI agent an inbox. Webhooks and WebSockets carry text, HTML and attachment metadata, and webhooks are retried 8 times over about 27 hours with Svix signatures [29] [30]. Messages and threads can be listed and searched later [31], extracted_text drops quoted history, and attachments come as download links [32]. It also offers IMAP and SMTP [33]. Free covers 3 inboxes and 3,000 emails a month at 100 a day with 1 custom domain and a footer; Developer is $20 [34]. Compare it in AgentMail alternatives.
Resend receiving works on a resend.app address or your own domain [15]. The email.received webhook carries metadata only [16]; the full message, with text, HTML, headers, SPF, DKIM and DMARC results and a raw download, comes from the API [17]. Attachment links last 1 hour [18]. Received mail is kept for 30 days and counts toward your sending quota [19]. Webhooks are retried 8 times over about 27 hours, signed with Svix [20] [21]. There is no thread id; you set the reply headers yourself [22]. Free is 3,000 emails a month at 100 a day [23]. It is the easy pick if you already send with Resend; see Runearc vs Resend.
Runearc keeps received mail in inboxes you create from code, until you delete it. A signed webhook fires on each message, a WebSocket and an events feed carry the same events, and the message, its thread, attachments and raw source come from the API. Replies join threads by their In-Reply-To and References headers, each message has SPF, DKIM and DMARC results and a spam score, and every inbox can be opened over IMAP. Received mail does not count against sending. It has no field that strips quoted replies, the webhook does not carry the body, and it has no SOC 2 report or EU region yet.
The Runearc prices below come from our pricing page. Paid plans are billed monthly in USD, and the free plan needs no card.
Side by side, checked on 2026-11-26
Swipe sideways to see every column.
| Product | Delivery to your code | Kept and queryable later | Parsed payload | Own domain | IMAP | Retries and signature | Free tier |
|---|---|---|---|---|---|---|---|
| Amazon SES | Receipt rules to S3, SNS or Lambda [35] | Raw message in your S3 bucket [36] | JSON verdicts, body as raw MIME [38] | Yes, MX [35] | Not stated | SNS retries; signed SNS messages [39] | AWS credits; $0.10 per 1,000 received plus chunks [40] |
| Cloudflare Email Routing | Your Worker runs per message [24] | No, you store it | Raw MIME stream; parse with a library [24] | Yes, on Cloudflare DNS [26] | Not stated | Not applicable; Worker runs inline | Routing free and unlimited [27] |
| Mailgun Routes | Forward to URL, JSON or form [6] | Up to 3 days [8] | Bodies, stripped-text, headers, attachments [6] | Yes, MX | Not stated | 8 hours; HMAC SHA256 [6] [9] | 1 route, 100 emails a day [10] |
| Postmark Inbound | JSON webhook [2] | Search API, 45 days default [3] | Bodies, StrippedTextReply, headers, base64 attachments [2] | Yes, or a postmarkapp.com address [1] | Not stated | 10 retries over about 10 hours; basic auth, no HMAC [2] [4] | Inbound from Pro, $16.50 [5] |
| SendGrid Inbound Parse | Multipart form, or raw MIME [11] | Not stated | Bodies, headers, attachments, SPF, DKIM, spam score [11] | Yes, authenticated domain [12] | Not stated | 5xx retried up to 3 days; ECDSA or OAuth [12] [13] | 60 day trial, 100 a day [14] |
| AgentMail | Webhooks or WebSockets [29] | Yes, list and search [31] | Bodies, extracted_text, attachment links [32] | 1 on Free [34] | Yes [33] | 8 tries over about 27 hours; Svix [29] [30] | 3 inboxes, 3,000 a month, footer [34] |
| Resend receiving | Webhook with metadata [16] | 30 days, list and fetch [19] | Bodies, headers, SPF, DKIM, DMARC, raw [17] | Yes, or a resend.app address [15] | Not stated | 8 tries over about 27 hours; Svix [20] [21] | 3,000 a month, received mail counts [19] [23] |
| Runearc (ours) | Signed webhook, WebSocket, events feed | Until you delete it | Bodies, threads, SPF, DKIM, DMARC, spam score, attachments, raw | Yes, 3 on Free, plus a private runearc.email domain | Yes | 7 tries over about 18 hours; Standard Webhooks | 3 inboxes, 3,000 emails a month, 3 custom domains, no card |
For a forwarding-first architecture, compare Cloudflare Email Routing with an inbound API. If users answer app notifications, the receive-email-replies guide covers durable ingestion and conversation matching. For outbound mail on the same stack, compare Cloudflare Email Sending and Resend.
Sources, read on November 26, 2026
- [1]Postmark, inbound user guide: postmarkapp.com/developer/user-guide/inbound
- [2]Postmark, inbound webhook: postmarkapp.com/developer/webhooks/inbound-webhook
- [3]Postmark, messages API: postmarkapp.com/developer/api/messages-api
- [4]Postmark, webhooks overview: postmarkapp.com/developer/webhooks/webhooks-overview
- [5]Postmark pricing: postmarkapp.com/pricing
- [6]Mailgun, receiving messages over HTTP: documentation.mailgun.com/docs/mailgun/user-manual/receive-forward-store/receive-http
- [7]Mailgun, route actions: documentation.mailgun.com/docs/mailgun/user-manual/receive-forward-store/route-actions
- [8]Mailgun, storing and retrieving messages: documentation.mailgun.com/docs/mailgun/user-manual/receive-forward-store/storing-and-retrieving-messages
- [9]Mailgun, securing webhooks: documentation.mailgun.com/docs/mailgun/user-manual/webhooks/securing-webhooks
- [10]Mailgun pricing: www.mailgun.com/pricing/
- [11]SendGrid, setting up the Inbound Parse webhook: www.twilio.com/docs/sendgrid/for-developers/parsing-email/setting-up-the-inbound-parse-webhook
- [12]SendGrid, inbound email: www.twilio.com/docs/sendgrid/for-developers/parsing-email/inbound-email
- [13]SendGrid, securing Parse webhooks: www.twilio.com/docs/sendgrid/for-developers/parsing-email/securing-your-parse-webhooks
- [14]SendGrid pricing: www.twilio.com/en-us/products/email-api/pricing
- [15]Resend, receiving emails: resend.com/docs/dashboard/receiving/introduction
- [16]Resend, receiving webhook: resend.com/docs/dashboard/receiving/create-receiving-webhook
- [17]Resend, retrieve received email: resend.com/docs/api-reference/emails/retrieve-received-email
- [18]Resend, received attachments: resend.com/docs/dashboard/receiving/attachments
- [19]Resend, account quotas and limits: resend.com/docs/knowledge-base/account-quotas-and-limits
- [20]Resend, webhook retries and replays: resend.com/docs/dashboard/webhooks/retries-and-replays
- [21]Resend, verify webhook requests: resend.com/docs/dashboard/webhooks/verify-webhooks-requests
- [22]Resend, reply to received emails: resend.com/docs/dashboard/receiving/reply-to-emails
- [23]Resend pricing: resend.com/pricing
- [24]Cloudflare, Email Workers: developers.cloudflare.com/email-routing/email-workers/
- [25]Cloudflare, Email Routing limits: developers.cloudflare.com/email-routing/limits/
- [26]Cloudflare, enable Email Routing: developers.cloudflare.com/email-routing/get-started/enable-email-routing/
- [27]Cloudflare, Email Service pricing: developers.cloudflare.com/email-service/platform/pricing/
- [28]Cloudflare, Email Sending public beta: developers.cloudflare.com/changelog/post/2026-04-16-email-sending-public-beta/
- [29]AgentMail, webhooks: docs.agentmail.to/webhooks-overview
- [30]AgentMail, webhook verification: docs.agentmail.to/webhook-verification
- [31]AgentMail, messages: docs.agentmail.to/messages
- [32]AgentMail, reply extraction: docs.agentmail.to/reply-extraction
- [33]AgentMail, IMAP and SMTP: docs.agentmail.to/imap-smtp
- [34]AgentMail pricing: www.agentmail.to/pricing
- [35]Amazon SES, email receiving: docs.aws.amazon.com/ses/latest/dg/receiving-email.html
- [36]Amazon SES, S3 action: docs.aws.amazon.com/ses/latest/dg/receiving-email-action-s3.html
- [37]Amazon SES, SNS action: docs.aws.amazon.com/ses/latest/dg/receiving-email-action-sns.html
- [38]Amazon SES, notification contents: docs.aws.amazon.com/ses/latest/dg/receiving-email-notifications-contents.html
- [39]Amazon SNS, verify message signatures: docs.aws.amazon.com/sns/latest/dg/sns-verify-signature-of-message.html
- [40]Amazon SES pricing: aws.amazon.com/ses/pricing/
Prices change. If something here is out of date or wrong, email hello@runearc.com and we will fix it.
Receiving with Runearc
Receiving is two steps: subscribe a URL to message.received, then fetch the stored message by the id in the
event. The handler below checks the Standard Webhooks signature against the
raw body first.
curl https://api.runearc.com/v1/webhooks \
-H "Authorization: Bearer $RUNEARC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/hooks/runearc", "event_types": ["message.received"]}'
# {"id": "whk_01jbz...", "event_types": ["message.received"], "secret": "whsec_..."}import express from "express";
import { verifyWebhook } from "./verify.mjs"; // copied from /docs/webhooks#verify
const app = express();
app.post("/hooks/runearc", express.raw({ type: "application/json" }), async (req, res) => {
const event = verifyWebhook(process.env.RUNEARC_WEBHOOK_SECRET, req.headers, req.body.toString());
res.sendStatus(200);
if (event.type !== "message.received") return;
// The event carries ids, sender and subject. The full message is stored, so fetch it.
const r = await fetch(`https://api.runearc.com/v1/messages/${event.data.message_id}`, {
headers: { Authorization: `Bearer ${process.env.RUNEARC_API_KEY}` },
});
const msg = await r.json();
console.log(msg.from, msg.subject, msg.thread_id);
console.log(msg.text, msg.auth_results?.dmarc, msg.attachments.map((a) => a.filename));
});
app.listen(3000);Because the mail is kept, you can read it back whenever you like, with no webhook involved:
# Days later: read the same inbox back, newest first
curl "https://api.runearc.com/v1/inboxes/ibx_01jbz8w4k2q9/messages?limit=20" \
-H "Authorization: Bearer $RUNEARC_API_KEY"
# A whole conversation, oldest first
curl https://api.runearc.com/v1/threads/thr_01jbz9c3m7xr \
-H "Authorization: Bearer $RUNEARC_API_KEY"The fields, the retry schedule and a signature test vector are in the webhooks reference, and
the message, thread and attachment endpoints in messages and threads. Prefer no public URL?
Stream the same events over a WebSocket or page through GET /v1/events. Free includes 3 inboxes, 3,000
emails a month and 3 custom domains with no card; Pro is $9 a month and Scale $99 a month, see
pricing.
How to pick
- You send with Resend and now need replies in an inbox your app reads: Resend receiving, if 30 days of storage and counting received mail against the quota are fine. If not, an inbox product such as AgentMail or Runearc.
- You only need each email parsed once into your own database: Postmark for the cleanest JSON, Mailgun if you already send with it, SendGrid if you are on Twilio.
- You run on AWS and want the lowest price per message: Amazon SES, plus your own S3 storage and MIME parsing.
- Your DNS is on Cloudflare and you like writing Workers: Email Routing with a Worker, free to receive.
- Each AI agent needs its own inbox, with quoted history already stripped from replies: AgentMail.
- You want received mail kept, threaded and readable over the API and IMAP, next to sending from the same domain: Runearc.
For inboxes built for agents, read the best email API for AI agents.
Questions
What is an inbound email API?
It is a service that receives email for your domain or for an address it gives you, parses the MIME message into fields such as from, subject, text, HTML and attachments, and hands it to your code, usually as a webhook. Some also keep the message so you can read it back later through an API.
How do I parse incoming email to JSON?
On November 26, 2026: Postmark posts JSON to your webhook. Mailgun posts JSON when the route's URL ends in json, otherwise form data. SendGrid Inbound Parse posts multipart form data. Resend, AgentMail and Runearc return JSON from an API call for each stored message. Amazon SES and Cloudflare Email Workers give you the raw MIME message, and you parse it yourself with a library.
What is the difference between a receiving webhook and an inbox?
A webhook is a single delivery: the message is posted to your URL, and if your code does not save it, it is gone. An inbox keeps the message, groups replies into threads and lets you list, search and fetch it later by API, and sometimes over IMAP.
I send with Resend. Can I also receive with it?
Yes. Resend receives on a resend.app address or your own domain, keeps received mail for 30 days and lets you list and fetch it by API. Each received email counts toward your sending quota. If you want received mail kept until you delete it, or IMAP access, compare AgentMail and Runearc.
Which inbound email APIs give IMAP access?
Of the products on this page, AgentMail and Runearc document IMAP for received mail. The others hand mail to your code and do not mention IMAP.
Is there a free inbound email API?
Cloudflare Email Routing is free and unlimited, but you write the Worker and the storage. Mailgun's free plan includes 1 inbound route at 100 emails a day. Resend, AgentMail and Runearc have free plans that receive into stored inboxes. Postmark lists inbound from its Pro plan.

Arin Prajapati, founder of RunearcA software engineer in Mumbai who builds Runearc's mail servers, API and site. More about Arin and why he built Runearc.
Read next
- Email API vs inbox API: what each does, and which one you needSend-first email APIs deliver your app's mail. Inbox APIs give your code a mailbox it owns. Here is what each does, how eight products handle receiving, read from their own docs, and how to tell which one your product needs.
- Webhooks and eventsSigned events at your URL, a WebSocket stream, retries and replay.
- Messages and threadsRead mail, wait for it with a filter, and follow threads.
Put Runearc to work
Get inboxes, sending, your own domains and MCP in one workspace. The free plan includes 3 inboxes, 3,000 emails a month and 3 custom domains, with no card.