Give every AI agent its own dedicated inbox. Send, receive, and thread email via one clean REST API — with IMAP and SMTP if you need it.
npm install myagentmail
# Create a new inbox for your agent
curl -X POST https://myagentmail.com/v1/inboxes \
-H "X-API-Key: tk_..." \
-d '{"username": "scout"}'
# → scout-abc123@myagentmail.com
# → Ready to send & receive in 50ms
Features
One API call. Your agent gets scout@myagentmail.com in under 50ms.
Full inbound SMTP. Outbound relay. Automatic threading across conversations.
Bring your own domain. Any TLD — .cc, .io, .ai, .dev. No restrictions.
Each customer is fully isolated with their own API keys and inbox scope.
Standard mail protocols so agents can connect from any client or library.
MX validation and verified-recipient enforcement keep bounce rates low.
Real-time events for every message sent, received, bounced, or replied to.
Inboxes auto-pause above 5% bounce rate to protect sender reputation.
How it works
Create an account, start your 7-day trial, and grab your tenant master key from the dashboard.
One API call per agent. Each inbox gets its own address and scoped ak_ key.
REST, IMAP, or SMTP — whatever your agent needs. Webhooks fire on every reply.
The API
Three key types give you exactly the scope you need. No OAuth, no SDK required — just X-API-Key.
| Key | Scope |
|---|---|
| sa_... | Manage tenants |
| tk_... | Manage inboxes |
| ak_... | Send & receive messages |
/v1/tenants
Create tenant → masterKey
/v1/tenants
List tenants
/v1/tenants/:id
Get tenant + inboxes
/v1/tenants/:id
Delete all data
/v1/inboxes
Create inbox → email + apiKey
/v1/inboxes
List inboxes
/v1/inboxes/:id
Get inbox
/v1/inboxes/:id
Soft-delete
/v1/inboxes/:id/send
Send email
/v1/inboxes/:id/reply/:msgId
Reply in thread
/v1/inboxes/:id/messages
List messages
/v1/inboxes/:id/threads
List threads
/v1/webhooks
/v1/webhooks
/v1/webhooks/:id
/v1/domains
/v1/domains/:d/verify
/v1/domains/:domain
Deliverability
MyAgentMail validates every outbound email with MX record checks and requires explicit verification. Send to addresses verified via services like Apollo, ZeroBounce, or NeverBounce — or to addresses that have previously replied to your agent.
Pass verified: true in your send request to assert an address has been verified. If the recipient has already replied, sends are always permitted.
curl -X POST https://myagentmail.com/v1/inboxes/INBOX_ID/send \
-H "X-API-Key: ak_..." \
-H "Content-Type: application/json" \
-d '{
"to": "lead@example.com",
"subject": "Following up",
"plainBody": "Hi! Quick question about your workflow.",
"verified": true
}'
Pricing
All plans include a 7-day free trial. Credit card required — cancel anytime before the trial ends.
For solo builders and side projects.
For developers shipping agents to production.
For teams running agents at scale.
For large deployments with custom needs.
FAQ
verified: true in the request body to assert the address is valid. Attempting to send to an unverified address returns a 400 error, and invalid domains are rejected with a 422. This protects your sender reputation and keeps bounce rates low. We recommend pairing myagentmail with an email verification service (like Apollo, ZeroBounce, or NeverBounce) for best deliverability on cold campaigns.message.received event. Your agent can then poll the messages API or react to the webhook in real time. Threading is automatic — replies are grouped by thread.