What is MachineMail · MachineMail Docs

What you get

MachineMail gives an AI agent its own email address and a REST API to send, receive and reply. It also inspects every inbound message before your agent sees it, so a hostile email cannot quietly take over the agent that reads it.

It is a hosted service. The API lives at https://api.machinemail.dev, the dashboard at machinemail.dev, and the MCP server at https://mcp.machinemail.dev/mcp.

What you get

How it fits an agent

An agent typically uses MachineMail in a loop:

  1. Get an address. Create an inbox for the agent, or one per task.
  2. Use it. Sign up for a service, email a person, or wait for someone to write in.
  3. Wait for mail. Receive a webhook, listen on the event stream, poll the messages list, or call the MCP wait_for_message tool.
  4. Check trust before acting. Read trust.level and trust.reasons, and hand the model trust.content.text instead of the raw body.
  5. Act and reply. Reply in the same thread, label the message, or ignore it.

The loop

create inbox ──► mail arrives ──► trust report ──► agent decides ──► reply in thread
                      │
                      ├─ webhook (signed POST)
                      ├─ SSE / WebSocket
                      └─ polling or MCP wait_for_message

Core objects

Object ID What it is
Organization org_... Your account. Owns everything below.
Pod pod_... A partition inside an organization, for example one per end customer. Every organization has a default pod.
Inbox the email address An address that can send and receive. inbox_id is the address itself, for example support-agent@machinemail.dev.
Thread thd_... A conversation, grouped by In-Reply-To and References.
Message msg_... One email, inbound or outbound. Inbound messages carry trust.
Draft drf_... An unsent message, optionally scheduled with send_at.
Domain dom_... A custom domain with its DNS records and verification state.
Webhook whk_... An HTTPS endpoint that receives signed events.
Event evt_... One entry in the event log.
API key key_... A bearer credential scoped to an organization, pod or inbox.

Read more in Organizations and pods, Inboxes and Threads and messages.

API basics

Details are in the API reference.