What is an agent inbox? Definition and how it differs from a sender API
Published · Updated
An agent inbox is a real email address an AI agent owns and controls through an API or MCP server, so it can receive, read, draft and send mail. The agent holds the mailbox itself, rather than borrowing a person's account or only pushing messages out.
The key difference from a sender API is direction. A sender API (an outbound-delivery service) is built to deliver outbound mail. An agent inbox is built so the agent can receive mail, wait for it, and read what arrived, which is what sign-ups, verification codes and replies need.
How is an agent inbox different from other email options?
| Option | What it is | Where it falls short for an agent |
|---|---|---|
| Shared mailbox | One address a team reads together | Mixed senders, one set of credentials, no per-agent isolation |
| Personal Gmail | A person's account | Agent gets access to everything the person owns; OAuth and consent screens get in the way |
| Sending API | Outbound delivery from your app | Sends well; receiving is typically secondary, so check whether it can receive and read inbound mail |
| Public temp-mail inbox | Disposable addresses anyone can open | Mail is readable by anyone who knows the address, so it is unsuitable for real accounts (private and custom-domain inboxes exist on some services) |
| Agent inbox | A private address the agent owns, over API or MCP | Built for receive, wait, read, draft and send |
Sender APIs are the right tool when your product sends mail to customers at volume. They are a different job. For the wider picture see email for AI agents.
What can an agent do with its own inbox?
Taking Mail for Bots as a concrete example, the core capabilities map to a handful of calls:
- Create an inbox.
create_inbox(reached viasearch_toolsandcall_toolover MCP) orPOST /inboxesreturns the inbox id and address. Attl_minutesvalue (5 or more) deletes throwaway inboxes automatically. - Wait for a message.
wait_for_messageblocks until a matching unread message arrives, including ones that already did, and returns it in full. Filter by sender, subject or the address (including a+tag) it was sent to, using substring matches. The oldest matching unread message is returned and marked read. - Read extracted codes and links. Messages come back with
extracted.codesandextracted.links(verify, login, reset), so the agent does not parse HTML. - Draft instead of send.
create_draftsaves a reply or new message for a human to review in the webmail; drafts created by an agent are marked as prepared by an agent. - Get called back. Webhooks fire when mail arrives, is sent, bounces and more.
- Search. Gmail-style operators across subject, sender, recipients and body; see search.
Here is the whole receive loop over REST. Replace the base URL with the one shown in the REST docs:
# BASE is your Mail for Bots URL; the key needs inboxes:manage to create and mail:read to wait
# 1. create an inbox (the response includes id and address)
curl -X POST "$BASE/api/v1/inboxes" \
-H "Authorization: Bearer $BOTMAIL_KEY" \
-H "Content-Type: application/json" \
-d '{ "username": "signup-bot", "ttl_minutes": 60 }'
# 2. use the address in a sign-up form, then long-poll for the mail
# (subject_contains is a case-insensitive substring match)
curl "$BASE/api/v1/inboxes/INBOX_ID/wait?subject_contains=verify&timeout_seconds=60" \
-H "Authorization: Bearer $BOTMAIL_KEY"
# 200: the full message, including extracted codes and links
# 408: nothing matching arrived in timeWho uses an agent inbox?
- Sign-up and OTP flows. An agent registers on a site and reads the code it is sent. See email verification codes for AI agents and letting an agent sign up for websites.
- QA and CI. One inbox per test, then assert on the real email. See testing password resets in CI and how to QA email flows with AI.
- Support triage. An agent reads incoming mail, labels it and drafts replies for a person to approve. See human approval for agent email.
What should a good agent inbox include?
- Isolation. Each agent or test gets its own inbox, so mail never mixes. Keys can be limited to specific inboxes with
inbox_ids; other inboxes are not accessible to that key. - Scoped keys. Give a support agent
mail:readanddrafts:write(addmail:sendonly if it may send), not full admin. See API keys and scopes. - Human approval. Drafts let an agent prepare a message while a person decides whether it goes out. A key without
mail:sendis not allowed to send. - Custom domains. Send and receive from your own domain. On Mail for Bots this is a Pro feature, with up to 10 domains; see custom domains.
- Safe reading. Mail is untrusted input; prefer extracted fields over free text.
Which agent inbox providers exist?
Several. AgentMail is built around the same idea; see AgentMail alternative for a comparison. Mailosaur and MailSlurp come from email testing; see Mailosaur alternative and MailSlurp alternative. Mail for Bots focuses on email only: Free includes 3 inboxes and 50 sends a day, and Pro is $20 a month for 100 inboxes, 5,000 sends a day and 10 custom domains. Plans are on the pricing page.
For side-by-side detail read the best email for AI agents in 2026 roundup or the Mail for Bots MCP email server page. To wire one up, start with the quickstart or the MCP docs.
Glossary: terms you will see around agent inboxes
| Term | Meaning |
|---|---|
| MCP email server | A Model Context Protocol server that exposes mail actions as tools an agent can call. See MCP email server. |
| Plus-addressing | name+tag@domain delivers to name@domain, so one inbox can serve many sign-ups. See plus-addressing. |
| Long-poll wait | One request that stays open until a matching message arrives or the timeout passes (1 to 300 seconds, default 60). |
| Webhook | An HTTPS callback sent when an event such as message.received happens, so the agent does not poll. |
| Extracted codes and links | One-time codes and verify, login or reset links pulled out of a message as structured fields. |
| Draft | A saved message that waits for a human to review and send. |
Key takeaways
- An agent inbox is a private, real address an agent controls over API or MCP; it receives as well as sends.
- A sender API is for outbound delivery; Gmail brings a person's whole account; public temp mail is readable by anyone who knows the address.
- The useful primitives are create, wait, extracted codes and links, drafts, webhooks and search.
- Look for isolation, scoped keys, human approval and custom domains.
- Competitors differ: check the roundup before choosing, and pick the one that fits your flow.
Ready to try it? Start free and create your first agent inbox in minutes.
Frequently asked questions
What is an agent inbox?
An agent inbox is a real email address an AI agent owns and controls through an API or MCP server, so it can receive, read, draft and send mail on its own.
How is an agent inbox different from a sending API?
A sending API is built to deliver outbound mail from your app. An agent inbox is built to receive: the agent can create an address, wait for a message, and read extracted codes and links, as well as send and draft.
Why not just give an agent a Gmail account?
A personal Gmail account exposes everything the person owns and needs OAuth consent. A dedicated agent inbox is isolated, can be limited with scoped API keys and specific inbox ids, and supports drafts that a human approves before sending.