You're viewing the agent-readable version of this page. Switch to human view

MultiMail — Email-as-a-Service for AI Agents

MultiMail gives AI agents real email addresses. Agents send and receive markdown — we handle conversion to/from HTML email, delivery, and human oversight.

Base URL: https://api.multimail.dev

Auth: Bearer token (API key returned at signup)

Content-Type: application/json

Quick Start

1. Sign up

POST /v1/signup
{
  "operator_name": "Your Company",
  "payment_method": "stripe",
  "accepted_tos": true,
  "accepted_operator_agreement": true,
  "oversight_email": "human@yourcompany.com"
}

Returns:

{
  "tenant_id": "01JXYZ...",
  "api_key": "mm_live_...",     // Save this — shown only once
  "default_mailbox": "agent@yourslug.multimail.dev",
  "billing_url": "/v1/billing/checkout",
  "oversight_mode": "monitored",
  "message": "Tenant created. Complete billing to activate."
}

2. Activate billing

POST /v1/billing/checkout
Authorization: Bearer mm_live_...
{
  "plan": "starter"    // starter | growth | scale
}

Returns a checkout URL. Complete payment to activate sending.

3. Send an email

POST /v1/mailboxes/{mailbox_id}/send
Authorization: Bearer mm_live_...
{
  "to": ["recipient@example.com"],
  "subject": "Hello from my agent",
  "markdown": "## Update\n\nAll tasks completed successfully."
}

4. Read your inbox

GET /v1/mailboxes/{mailbox_id}/emails
Authorization: Bearer mm_live_...

Returns emails with markdown bodies, thread IDs, and attachment metadata.

5. Reply to a thread

POST /v1/mailboxes/{mailbox_id}/emails/{email_id}/reply
Authorization: Bearer mm_live_...
{
  "markdown": "Thanks for the update. I'll follow up tomorrow."
}

Key Concepts

Markdown-native

You send markdown, recipients get formatted HTML email. Inbound HTML is converted to markdown before you see it. You never deal with MIME, HTML, or raw email headers.

Oversight Modes

Every mailbox has an oversight mode controlling human involvement:

Webhooks

Set a webhook_url on your mailbox to receive POST notifications when new email arrives. Alternatively, poll the inbox endpoint.

API Reference

Full OpenAPI spec: GET /v1/openapi.json

Endpoints

Authentication

All endpoints (except signup and webhooks) require a Bearer token:

Authorization: Bearer mm_live_...

API keys have scopes: read, send, admin, oversight. The key returned at signup has all scopes.


Questions? Email support@multimail.dev

Now in beta

Email for
AI agents

Give your agents real email addresses. They send and receive markdown—we handle the conversion, delivery, and human oversight.

View API docs See how it works
send-email.ts
const res = await fetch(`https://api.multimail.dev/v1/mailboxes/${id}/send`, { method: "POST", headers: { "Authorization": `Bearer ${key}` }, body: JSON.stringify({ to: ["alice@example.com"], subject: "Weekly report", markdown: "## Summary\n\nAll tasks completed." }) });

Three API calls from zero to a working inbox

Your agent signs up, gets an email address, and starts sending—all programmatically, no dashboard required.

1

Sign up via API

POST to /v1/signup with a payment method. You get back an API key and a default mailbox like agent@you.multimail.dev.

2

Send & receive as markdown

Outbound markdown becomes properly formatted HTML email. Inbound HTML is converted to clean markdown. Your agent never touches raw MIME.

3

Oversight built in

Every mailbox has configurable human oversight. Mirror copies, send-gating, or full approval flows—choose the level of control that fits.


Built for agents,
safe for humans

Everything an AI agent needs to participate in email, with guardrails you can trust.

Format

Markdown-native

Send markdown, receive markdown. We handle the bidirectional conversion between markdown and HTML email automatically.

Safety

Human oversight

Four oversight modes from autonomous to fully gated. Oversight emails get BCC'd on every message. Approve or reject sends before they go out.

Conversation

Threaded conversations

Automatic thread tracking via Message-ID and In-Reply-To headers. Your agent can follow and reply to email threads naturally.

Performance

Globally fast

Runs at the edge, close to your agent. Fast API responses no matter where your agent runs.

Files

Attachments

Send and receive attachments via base64-encoded payloads. Files stored with zero egress fees—agents reading emails costs nothing in bandwidth.

Events

Webhooks & polling

Get notified via webhook when new email arrives, or poll the inbox. Webhook deliveries are tracked with automatic retries on failure.


You decide how much autonomy to grant

Every mailbox has a configurable oversight mode. Start gated, relax to monitored as you build trust, or let experienced agents run autonomously.

autonomous
Full send/receive without approval. For trusted, battle-tested agents.
monitored — default
Agent operates freely. All outbound emails BCC'd and inbound forwarded to your oversight address.
gated_send
Outbound emails require human approval before delivery. Inbound delivered immediately.
gated_all
Both inbound and outbound require human approval. Maximum control for sensitive use cases.

RESTful, predictable, agent-friendly

Clean REST endpoints. OpenAPI spec at /v1/openapi.json so tool-using agents auto-generate clients.

POST
/v1/signup
Create a tenant, get an API key and default mailbox. Autonomous—no human-in-the-loop signup.
POST
/v1/mailboxes/:id/send
Send markdown email. Automatically converted to HTML and delivered. Supports attachments and CC.
GET
/v1/mailboxes/:id/emails
List inbox. Returns markdown bodies, thread IDs, attachment metadata. Filterable by status.
GET
/v1/mailboxes/:id/emails/:eid
Get a single email with full markdown body, headers, and downloadable attachment URLs.
POST
/v1/mailboxes/:id/emails/:eid/reply
Reply in-thread. Automatically sets In-Reply-To and References headers for proper threading.
POST
/v1/oversight/decide
Approve or reject gated emails. Available via API or one-click links in oversight notification emails.


Your agent's inbox is one API call away

Join the beta waitlist. We'll reach out when your spot is ready.