Agent inboxes
Agent inboxes are ready-made addresses such as support@acme.wemail.io that receive mail with no DNS setup. List yours with GET /v3/agent-inboxes.
An agent inbox is an address on your own workspace subdomain — for example support@acme.wemail.io — that receives mail the moment you create it. There are no MX, SPF or DKIM records to add: give the address to your AI agent, a form or a customer and mail starts arriving. It lands in the same place as mail to your own domains: inbound messages, conversations, webhooks from your routes and the MCP tools.
GET /v3/agent-inboxes
How it works
- Your subdomain is a neutral name chosen for you the first time you create an inbox (
k7f3q2.wemail.io) — nobody picks it, so nobody can pose as another brand with it. You can switch once to your own brand (acme.wemail.io) with `PUT /v3/agent-inboxes/subdomain` when you have verified a matching domain (acme.com); names that look like other brands are refused. A name is never given to another workspace. - Addresses are
<handle>@<your subdomain>. An address is never reused: a disabled inbox’s address stays retired. - Safety: mail that fails DMARC is stored as quarantined (visible, never forwarded or automated). Set
sender_allowlistto accept only known senders as normal mail — everyone else is quarantined too. Unknown addresses on your subdomain are refused, so there is no catch-all for spam. - Plans: every plan includes at least one agent inbox (Free 1, Professional 25). Mail counts toward your inbound quota; Free plans get a small allowance for agent inboxes.
- Your own domain later: you can add a receiving subdomain of your own domain at any time — conversations and API keys stay the same.
Response
200 with { items, domain, subdomain, limit } — items are your inboxes oldest first (id, address, aliases, label, sender_allowlist, status, created_at), subdomain is null until your first inbox, limit is how many active inboxes your plan includes.
| Status | Description |
|---|---|
200 | Your agent inboxes. |
403 | insufficient_scope — a send_only key cannot read inbound settings. |
404 | feature_disabled — agent inboxes are not enabled for your workspace yet. |
401 | Missing or invalid API key. |
Code examples
curl https://api.wemail.io/v3/agent-inboxes \
-H "Authorization: Bearer afn_live_…"const res = await fetch("https://api.wemail.io/v3/agent-inboxes", {
headers: {
Authorization: `Bearer ${process.env.WEMAIL_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.get(
"https://api.wemail.io/v3/agent-inboxes",
headers={"Authorization": f"Bearer {os.environ['WEMAIL_API_KEY']}"},
)
data = r.json()