All posts

What is an email API? Sending, inbound and inbox APIs explained

An email API lets your code send or receive mail over HTTP. There are three kinds, and the one you need depends on whether anyone replies.

An email API lets your code send or receive email with an HTTP request instead of talking to a mail server directly. You call an endpoint with the recipient, subject and body, and the provider handles delivery; for incoming mail, the provider calls your code with the message.

There are three kinds, and most guides only cover the first. This one explains all three, what each is good for, and how to choose.

What is an email API?

A web API in front of mail infrastructure. Email itself moves between servers over SMTP, the protocol in RFC 5321. An email API wraps that in requests your app already knows how to make: JSON over HTTPS, with an API key.

What you get in return is the hard part done for you: delivery, retries, bounce handling, and the DNS records (SPF, DKIM, DMARC) that stop your mail landing in spam.

What are the three kinds of email API?

Kind What it does Good for Examples
Sending API Sends mail from your app Receipts, password resets, notifications Resend, Postmark, Amazon SES
Inbound API Delivers mail sent to your domain to your code, usually by webhook Parsing replies, support forms, mail-to-ticket Postmark inbound, SES receipt rules
Inbox API Gives your code a whole mailbox: send, receive, threads, drafts Software that holds a conversation, like an AI agent ACK, AgentMail, Nylas Agent Accounts

The line between them is blurring, and several sending providers now receive too. The question is how much of the mailbox you get versus how much you build.

What does a sending API do?

You make one request per email. With Resend's API, for example, that's a POST with from, to, subject and html, and you get back the email's ID.

Sending APIs are built for volume and deliverability. They're the right tool when the conversation is one-way: you send, nobody needs a reply from your code. Resend vs SendGrid vs Postmark compares the main ones on price.

What does an inbound email API do?

It turns mail sent to your domain into a request to your server. You point your domain's MX record at the provider, and each incoming message arrives as a webhook.

What arrives varies:

  • Postmark posts the message as JSON with TextBody, HtmlBody, attachments and, when it can, StrippedTextReply holding just the reply (Postmark docs).
  • Resend's email.received webhook carries metadata only: "Webhooks do not include the email body, headers, or attachments, only their metadata" (Resend docs). You fetch the content with a second call.
  • Amazon SES delivers incoming mail through receipt rules, to an S3 bucket or an SNS topic (SES docs).

With an inbound API, threads, history and replies are yours to build. How to receive email with webhooks shows what that takes.

What does an inbox API do?

It gives your code a real mailbox. One call creates an address; mail sent to it is stored, grouped into threads and delivered to you; replies go out in the same thread.

That's what software needs when it holds a conversation rather than sending one-off messages. An AI agent answering support mail, booking meetings or chasing invoices has to read the reply, remember the thread and answer in it. Email for AI agents goes through what that involves.

On ACK, an inbox API looks like this:

  • Inboxes by API. Create one per agent, through a REST API or an MCP server with 39 tools (developers).
  • Threads handled. ACK sets In-Reply-To and References, so replies stay in the conversation in the other person's mail app. What is an email thread? explains those headers.
  • Signed webhooks. Received, sent, delivered, bounced, complained and opened events, signed the Standard Webhooks way and retried for 24 hours.
  • Drafts for approval. A key can be limited to writing drafts, so a person sends. Approve your agent's email before it goes out has the setup.

Which email API should I use?

  • Your app sends notifications and nobody replies: a sending API.
  • People reply and you only need the text: a sending API plus inbound webhooks.
  • Software holds the conversation, with threads, history and replies: an inbox API.

You can mix them. Plenty of teams send receipts through a sending API and give their agents inboxes for the conversations. For agent-specific options side by side, see best email API for AI agents.

FAQ

What is an email API?

An HTTP API for sending or receiving email. Your code makes a request; the provider handles the mail servers, delivery and DNS records.

What is the difference between SMTP and an email API?

SMTP is the protocol mail servers use to pass messages to each other. An email API sits in front of it, so your code sends JSON over HTTPS instead of speaking SMTP.

Can an email API receive email?

Many can. Inbound APIs send incoming mail to your code by webhook. Inbox APIs go further and store it in a mailbox with threads.

What is a transactional email API?

A sending API used for messages triggered by something a user did, like a receipt or a password reset, as opposed to marketing mail sent to a list.

What email API is best for AI agents?

One that gives each agent its own inbox, handles threads and lets a person approve what goes out. Best email API for AI agents compares seven.

Give your agent an inbox

ACK gives each agent its own email inbox, with threads, signed webhooks and drafts a person approves. It's $19 per organisation a month with 10 inboxes. The developer quickstart gets you to a first reply in four requests. Start a trial.