AgentMail
An inbox for every AI agent.
About AgentMail
AgentMail provides email infrastructure designed for AI agents. Its API lets developers create dedicated inboxes, send and receive emails, manage conversations and attachments, and trigger automations using webhooks and WebSockets. Developers can build agents for customer support, processing incoming messages, or coordinating appointments, with custom domains and SDKs.
Visual guide to AgentMail

User guide V2: AgentMail
Create a dedicated agent inbox, send a test message and retrieve its reply with the Python SDK. This checks the complete exchange before adding automation.
Before you start
- An AgentMail account accessible through the console and a personal address to receive the test.
- Python, pip and a terminal; familiarity with creating and running a Python file.
- An AgentMail API key created in the console and kept outside your code and repository.
Prepare the project
In a working directory, install the dependencies with
pip install agentmail python-dotenv.Check: The command finishes without errors and both packages are installed.
Configure the key
Create a
.envfile containingAGENTMAIL_API_KEY=, followed by your AgentMail API key.Check: The file exists locally; its value remains secret and is excluded from version control.
Create the inbox
In
quickstart.py, callload_dotenv(), initializeAgentMail(api_key=os.getenv('AGENTMAIL_API_KEY')), then callclient.inboxes.create().Check: Run the script and record
inbox.inbox_id; the default domain is used when none is specified.Send a test
In the same script, call
client.inboxes.messages.sendwith the inbox ID,to,subjectandtext.Check: Run the script and check your personal inbox, including its spam folder, for the message.
Reply to the message
From your personal address, reply to the received message with a short, recognizable test phrase.
Check: The reply is addressed to your new AgentMail inbox; retain its inbox ID for the read step.
Read the reply
In a separate script, initialize the client and call
client.inboxes.messages.list(inbox_id, limit=10).Check: Loop through
.messagesand printsubjectandextracted_textortext; find your reply.
Useful features
- API-created inboxes: give an agent its own address without setting up a custom domain for this test.
- Messages and threads: send, receive and retain conversation context in the inbox.
- Events: webhooks or WebSockets can subsequently trigger processing when a message arrives.
Practical tips
- In the script, import
os,load_dotenvfromdotenvandAgentMailfromagentmail; assign the client toclientand the creation result toinbox. - Do not routinely rerun the inbox-creation script: reuse the saved ID to avoid consuming multiple inboxes.
- For production, prefer events over tight polling loops and handle 429 errors using the
Retry-Afterheader.
Limits and precautions
- The pricing page lists Free as three inboxes, 100 emails per day and 3,000 per month. Quotas and conditions can change.
- The pricing page includes one custom domain on Free; accounts created before November 4, 2026 may need to request activation. AgentMail branding is added to mail sent from that domain.
- An agent that signs itself up can face additional restrictions before human verification. A reply appearing in the API does not mean an agent has analyzed or processed it automatically.
Documentation consulted: 2026-12-02
Guide sources
Overview and pricing
Pricing models: Freemium · Subscription · Pay per use · Enterprise / quote.
Free tier with limitations; paid plans may be available.
Check current pricing and terms on the official site.
Features
- Inbox creation
Provision and manage dedicated inboxes via API.
- Email management
Send, receive, and forward messages.
- Conversation threads
Group replies and follow-ups by conversation.
- Attachments
Send and receive files with messages.
- Real-time events
Use webhooks and WebSockets to trigger your workflows.
- Custom domains
Send and receive emails using your own domain.
- Developer SDKs
Integrate the service using open-source Python and Node SDKs.
- MCP server
Connect MCP-compatible tools to AgentMail.
Highlights
- Create dedicated inboxes for AI agents via API.
- Trigger workflows in real time.
- Start for free, then scale capacity to meet your needs.
Technology and platforms
- API available
- Platforms: Web
- Supported languages: Anglais
Recent news
Forwarding received emails to verified addresses
Announcement date:
Mailboxes can forward a copy of received emails to up to five verified addresses. This feature eliminates the need to create a webhook handler for forwarding.
Original source: www.agentmail.to
YouTube videos about AgentMail
- DON'T Connect ChatGPT or Claude to GMAIL Until You've Seen AgentMail — James McAulay — —
- AgentMail: The Email Inbox Built for AI Agents — SyntaxGTM (Tom Granot) — —
- Introducing the AgentMail MCP Server! — AgentMail — —
Community reviews
KingLand Score : 72/100.
Community votes: 1 up · 0 down.
The KingLand Score is a community index. Participating can earn points. Methodology.