Skip to content
Email API for AI agents

Inboxes your agents can be trusted with.

Give every agent, test run and teammate its own address. Send, receive and act on email over a plain HTTP API, with scoped keys, signed webhooks and no mail server to run.

Mandata is in early access. Sign-up needs an invite code.

agent.ts
import { MandataClient } from '@mandata/sdk';

const md = new MandataClient({
  apiKey: process.env.MANDATA_API_KEY,
});

// A real address, ready to send and receive
const inbox = await md.inboxes.create({
  localPart: 'research-agent',
});
// → research-agent@mandatamail.com

await md.messages.send(inbox.id, {
  to: ['partners@contoso.com'],
  subject: 'Q4 data request',
  text: 'Could you share the Q4 export?',
});
Who holds the inbox

One API, three kinds of caller

Agents

Give every agent an address.

Research agents, support agents, outreach agents. Each gets its own inbox, its own key and a webhook that wakes it when mail arrives.

Tests

An inbox per test run.

Create an address, sign up to the app under test, read the confirmation email from the API. No shared test mailbox, no flaky IMAP.

Teams

Your email, in the tools you already use.

Route a shared address into your own services through webhooks, and keep each customer apart with pods.

mandataInboxesPodsAPI keysWebhooks
research-agent@mandatamail.comAgent · webhook to /hooks/mail● receiving
signup-tests@mandatamail.comCI · key scoped to this inbox, expires in 1 hscoped key
support-acme@mandatamail.comTeam · pod: acmepod
What you get today

Email without a mail server

An inbox per agent

Create a real address on mandatamail.com with one call. No mailbox provisioning, no OAuth consent screens, no shared credentials.

Send and receive

Outbound goes through SES with idempotent sends. Inbound is parsed into messages, threads and attachments you can read over HTTP.

Signed webhooks

email.received and email.sent events, HMAC-signed with secret rotation, retried with stable ids so your handler can dedupe.

Keys with a scope

Scope an API key to a single inbox and give it an expiry. An agent only holds the access its job needs.

Pods for your customers

Building for many tenants? Pods give each customer their own inboxes and keys inside one organization.

Guardrails on by default

A suppression list for bounces and complaints, per-message recipient caps and rate limits, so a looping agent cannot burn your sender reputation.

For developers

React to mail the moment it lands

Register a webhook for email.received. Each delivery is signed. Verify it with one call, fetch the message and hand it to your agent. Every endpoint is plain JSON over HTTPS with a bearer key, so any language works.

  • Base URLhttps://api.mandata.app/v1
  • AuthAuthorization: Bearer <key>
  • Eventsemail.received · email.sent
webhook.ts
import { verifyWebhook } from '@mandata/sdk';

const event = await verifyWebhook({
  payload: rawBody,          // the exact bytes received
  headers: req.headers,
  secret: process.env.MANDATA_WEBHOOK_SECRET,
});

if (event.type === 'email.received') {
  const mail = await md.messages.get(event.data.id);
  await agent.handle(mail);
}
shell
$ curl https://api.mandata.app/v1/inboxes \
    -H "Authorization: Bearer $MANDATA_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"localPart":"signup-tests"}'
Self-hostable

Run it in your own AWS account

Your infrastructure. The same API and console run with Docker Compose on your servers, sending and receiving through your own SES.

Isolation in the database. Every organization's rows are guarded by Postgres row-level security, not only by application code.

White-label console. Ship the dashboard to your own customers under your own name and colours.

On the way

What we are building next

  • Soon
    Wait for a message

    Long-poll an inbox until the email arrives, for tests that sign up and confirm.

  • Soon
    Short-lived inboxes

    An inbox per test run that deletes itself when the run ends.

  • Soon
    Mandates

    Scoped grants: who may act on an inbox, how, and until when, with approval before sending.

  • Soon
    Custom domains

    Send and receive on your own domain, with DNS records generated for you.

  • Soon
    MCP server

    Hand an inbox straight to Claude or any MCP client as tools.

Hand your agent an inbox.

Have an invite code? Create an account and mint your first key in under a minute.