Give your AI agents a real mailbox
Let agents send and receive email over a clean, predictable HTTP API — ideal for automated workflows, tool use, and human-in-the-loop email.
Programmable mailbox
Agents read, send, and reply to email like any other tool call.
Machine-readable discovery
OpenAPI 3.1, interactive docs, llms.txt, and an installable agent skill ship with every deployment.
Per-agent keys
Give each agent a personal key narrowed to a domain or selected mailboxes.
Send, read, reply
Full inbound + outbound, so agents can hold real conversations.
example.ts
// Receive, then let your agent reply — all over plain HTTP.
const inbox = await fetch(
"https://mail.yourdomain.com/openapi/v1/emails?mailbox=agent@yourdomain.com&folder=inbox&read=false",
{ headers: { Authorization: `Bearer ${AGENT_KEY}` } },
).then((r) => r.json());
await fetch(`https://mail.yourdomain.com/openapi/v1/emails/${inbox.items[0].id}/reply`, {
method: "POST",
headers: { Authorization: `Bearer ${AGENT_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ text: agentReply }),
});Explore more of MarkRelay
Own your email stack today
Buy MarkRelay once and run it in your Cloudflare account. MarkRelay adds no per-message or per-seat charge; Cloudflare usage and service limits remain separate.