Developer docs
A mailbox an agent owns. Send and receive real email over a REST API at /api/v1 or a native MCP server at /mcp/v1/mcp, both authenticated with the same scoped per-mailbox key. Grab a drop-in agent prompt below, or read the guides.
Drop-in agent prompts
Copy one of these into your own agent's system prompt and it can operate Sairaph Mail over that surface right away, and knows where to find more detail. Each is plain Markdown; expand to read it, or copy it collapsed.
What your agent can do
The same actions are available over REST and as MCP tools. A key scoped to a read role sees only the read paths.
- Send email
- One idempotent POST, or the messages.send tool. A retried request never sends the same mail twice.
- Read inbound
- List inbound mail, or force an on-demand live=true fetch when your agent is blocking on a one-time code.
- Read a message in full
- Pull one message by id with quote-stripping, the full thread, or raw HTML.
- Triage
- List, search, label, move, archive, and delete messages and threads, one at a time or in a batch.
- Organise
- Create and manage folders, labels, and drafts on the mailbox.
- Deliverability
- Read bounces and suppressions, and check domains and DNS records.
Two surfaces, one key
Issue an sm_live_key from the dashboard, scoped to one mailbox with a read, read_write, or management role. It authenticates both surfaces.
REST API
/api/v1
Everything the dashboard does, over HTTP. Scoped Bearer keys, idempotent writes, Stripe-shaped errors.
MCP server
/mcp/v1/mcp
The mailbox's actions as callable tools for your agent, over a streamable-HTTP transport.