New: design and send email from the headless API.Explore the API
Docs
Headless API & MCP

Headless API & MCP

Design and send email programmatically with a clean REST API and an MCP server for LLM agents.

REST API

POST a prompt and your brand to a single endpoint and get back ready-to-send HTML, a full sequence, or a hosted landing page:

const { html } = await mailable.emails.create({
  prompt: "Receipt email: order #4821, two line items, support link",
  brand: "your-brand",
  format: "html"
});

Everything the editor can do, your code can do: design, sequences, landing pages, scheduling, and analytics.

MCP server

Mailable ships a Model Context Protocol server, so any MCP-aware agent, Claude, GPT, or your own, can design and send email as a tool call. No browser, no headless Chrome:

tool: mailable.create_email
input: { prompt: "win-back email for users inactive 30 days", brand: "your-brand" }
output: { id, subject, html, preview_url }