Skip to content

Blog

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?

Comparison
OptionWhat it isWhere it falls short for an agent
Shared mailboxOne address a team reads togetherMixed senders, one set of credentials, no per-agent isolation
Personal GmailA person's accountAgent gets access to everything the person owns; OAuth and consent screens get in the way
Sending APIOutbound delivery from your appSends well; receiving is typically secondary, so check whether it can receive and read inbound mail
Public temp-mail inboxDisposable addresses anyone can openMail 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 inboxA private address the agent owns, over API or MCPBuilt 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 via search_tools and call_tool over MCP) or POST /inboxes returns the inbox id and address. A ttl_minutes value (5 or more) deletes throwaway inboxes automatically.
  • Wait for a message. wait_for_message blocks 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.codes and extracted.links (verify, login, reset), so the agent does not parse HTML.
  • Draft instead of send. create_draft saves 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:

Create an inbox, then wait for the verification email
# 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 time

Who uses an agent inbox?

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:read and drafts:write (add mail:send only 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:send is 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

Comparison
TermMeaning
MCP email serverA Model Context Protocol server that exposes mail actions as tools an agent can call. See MCP email server.
Plus-addressingname+tag@domain delivers to name@domain, so one inbox can serve many sign-ups. See plus-addressing.
Long-poll waitOne request that stays open until a matching message arrives or the timeout passes (1 to 300 seconds, default 60).
WebhookAn HTTPS callback sent when an event such as message.received happens, so the agent does not poll.
Extracted codes and linksOne-time codes and verify, login or reset links pulled out of a message as structured fields.
DraftA 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.

Start free Read the quickstart