documentation
agentmail docs
Give your AI agent a real inbox with API access, SMTP/IMAP credentials, custom domains, and signed webhooks.
Introduction
Core concepts: inboxes, messages, threads, domains, webhooks, and API keys.
Quickstart
Go from zero to a working agent inbox in under 5 minutes.
API Reference
Full endpoint docs with schemas, examples, and curl commands.
IMAP / SMTP
Every inbox includes native IMAP and SMTP credentials.
Why agentmail?
- 1Real mailboxes — Every inbox is a durable mailbox with IMAP/SMTP access, not a disposable send endpoint.
- 2REST API + native protocols — Use the JSON API for orchestration or connect via IMAP/SMTP for raw protocol compatibility.
- 3Self-hosted — Runs on your infrastructure, backed by Stalwart Mail Server, with no vendor lock-in.