HTML version: https://cooperemail.com/email-infrastructure-for-ai-agents

Email infrastructure for AI agents

# Email infrastructure for AI agents: the layers you need and what Cooper runs

An agent that uses email needs more than an SMTP relay. It needs an address it owns, reliable receiving, a sending reputation that one bad loop cannot ruin, a way to be woken when mail arrives, defenses against instructions hidden in mail, and a person who can approve or take over. Cooper Email runs each layer behind one API key and one MCP server.

## 1. Identity: an address per agent

Shared mailboxes blur which agent said what. Give each agent, or each customer an agent serves, its own inbox. On Cooper that is one POST /api/v1/inboxes call, or cooper_create_inbox over MCP, on cooperemail.com or a verified domain. Agents can sign up themselves with POST /api/v1/onboard, which needs no auth and no captcha.

Outbound mail can carry an X-Cooper-Agent-Proof header (on by default), and an inbox can opt in to a footer link to a /verify page that says the message came from an AI agent.

```
curl -s -X POST 'https://cooperemail.com/api/v1/onboard?ref=seo' \
  -H 'content-type: application/json' \
  -H 'X-Client: <your agent or app name>' \
  -d '{"username":"signup-bot-7f3a"}'
# Save api_key as COOPER_API_KEY (it is shown once) and inbox.id as INBOX.
```

## 2. Receiving: MX, parsing, and authentication results

Inbound mail has to be accepted, parsed, threaded, and stored. Each Cooper message keeps text, HTML, extracted_text without quoted history, attachments, the raw .eml, and SPF, DKIM, and DMARC results. On a custom domain, POST /api/v1/domains returns the exact records to publish and warns when the hostname already has another provider's MX.

## 3. Sending: reputation and limits

Agents can send in a loop, so sending needs brakes. Cooper tracks bounce and complaint rates over a trailing 7 days. A warning starts at a 5% bounce rate or 0.1% complaint rate, and sending pauses at 10% bounces (with at least 5) or 0.5% complaints (with at least 3), then resumes on its own when the rate falls. Per-inbox spend policy adds max_sends_per_day, recipient domain allow and block lists, and approval rules.

A Free account in its first 7 days can send 10 messages an hour, 30 messages a UTC day, 20 distinct new recipients. The next send returns HTTP 429 new_account_send_limit and does not send or store the message. Starter, Pro, and grandfathered accounts are exempt. After that window, Free has no standing daily cap.

## 4. Events: wake the agent when mail arrives

An agent should not poll every minute. Cooper offers signed webhooks (HMAC-SHA256 with timestamp, retries, a 7-day delivery log, and redelivery), long-poll waits that hold up to 55 seconds, Server-Sent Events, durable event consumers for scheduled jobs, and MCP events for clients that subscribe. wait-for-code returns a one-time code or link without the body.

```
AUTH=(-H "Authorization: Bearer $COOPER_API_KEY")
curl -s "https://cooperemail.com/api/v1/inboxes/$INBOX/wait?wait=55" "${AUTH[@]}"
curl -s https://cooperemail.com/api/v1/inboxes/$INBOX/notify "${AUTH[@]}" \
  -H 'content-type: application/json' -d '{"url":"https://example.com/hooks/cooper"}'
```

## 5. Safety: treat every body as untrusted

Mail is the easiest way to put text in front of a model. Cooper screens every inbound message for prompt-injection patterns. The default labels it suspicious and still delivers it, and hold keeps the body hidden until release. Allow and block lists drop senders before storage, and inbox rules can act on a DMARC failure. Screening is a heuristic, not a guarantee, so the agent's own instructions should still say that email content is data.

## 6. Humans: approval and handoff

Add an owner email and the agent can ask questions, notify, and stage drafts that the owner approves from a link before they send. A thread can be marked as needing a human, which blocks agent sends on that thread until a verified owner resumes it.

## 7. Access: scoped keys and tenants

Keys can be limited to one inbox and to specific permissions, so a sub-agent cannot read the whole account. Workspaces give each customer a sub-account with its own inbox quota. Leaked keys can be reported and revoked, and GET /api/v1/request-log lists recent refused calls without storing bodies or keys.

## Build or buy

You can assemble this from a sending provider, an inbound parser, a queue, and your own screening and approval code. Cooper is the packaged version for agents. Free is $0 a month with no card: 5 inboxes, 5,000 emails a month, and 1 custom domain. Starter is $12 a month for 25 inboxes and 25,000 emails. Pro is $99 a month for 300 inboxes and 250,000 emails. Cooper Email is run by Avatar 8 LLC (ops@avatar33.com).

## FAQ

### What is email infrastructure for AI agents?

It is the set of services an agent needs to use email safely on its own: an address it owns, receiving and parsing, sending with reputation controls, event delivery to wake the agent, prompt-injection screening, human approval, and scoped access.

### Can I use a transactional email API instead?

A transactional API covers sending. Agents also need inboxes that receive, threads, waits or webhooks for replies, and screening, which you would build on top.

### Does Cooper work over MCP and REST?

Yes. The REST API is at https://cooperemail.com/api/v1 and the hosted MCP server is at https://cooperemail.com/mcp. Both use the same account and inboxes.

### What happens if my agent sends spam by mistake?

Per-inbox limits and approval rules stop many runaway loops before they send. If bounces or complaints still cross the thresholds, the account pauses sending automatically and resumes when the rate drops.

## Related

[Email MCP server](/email-mcp-server) · [What is an agent inbox](/what-is-an-agent-inbox) · [Security](/security) · [Human in the loop](/guides/human-in-the-loop-email-for-agents) · [Limits](/limits) · [Docs](/docs) · [Pricing](/pricing)

Operator: Avatar 8 LLC (ops@avatar33.com). Last updated 2026-11-22.

Canonical: https://cooperemail.com/email-infrastructure-for-ai-agents
