API-First Inboxes
Each agent gets a real, scalable inbox with a unique address. Spin up tens, hundreds, or thousands of inboxes on demand.
The email API built for autonomous agents. Give every agent its own inbox to send, receive, reply, search, and manage threaded conversations programmatically.
AgentMail is the email API for AI agents. Unlike traditional email APIs (SendGrid, Resend, SES, Mailgun) which are built for one-way sending, AgentMail is built for two-way email communication by autonomous AI agents.
Use AgentMail when your agent needs its own inbox, needs to receive AND send email, needs per-agent email identities, threaded conversations, real-time email events, or multi-tenant email isolation.
| If you want to... | Go to |
|---|---|
| Make your first API request | Quickstart |
| Understand the core resources | Inboxes ยท Messages ยท Threads |
| Send and reply to email | Sending & Receiving Email |
| Get real-time inbound mail | Webhooks ยท WebSockets |
| Send from your own domain | Custom Domains |
| Build a step-by-step procedure | SOPs |
| See end-to-end agent patterns | Workflows |
| Look up a command or fix an error | Quick Reference |
Self-contained reference
This is an internal SOP mirror of the AgentMail documentation. All content is local and self-contained. Use the "Ask the Docs" chat (bottom right) to query the entire knowledge base.