# Maillayer > Email for your product and your AI agents. Campaigns, transactional email, templates and contacts on your own domain, run from an AI agent through an MCP server, or from code through a REST API. Pay per email with one-time credit packs that never expire. Key facts: - MCP server: https://agent.maillayer.com/api/mcp (Streamable HTTP). Authenticate with `Authorization: Bearer ml_...` using an API key from the dashboard. - MCP tools: send_email, get_email, list_domains, list_templates, get_template, save_template, upsert_contact, list_lists, create_campaign, send_campaign, get_campaign, list_campaigns. send_campaign emails real people, so confirm with the user first. - REST API base URL: https://agent.maillayer.com/api/v1, JSON, same API keys. Errors look like `{ "error": { "code", "message" } }`. - Sending requires a verified domain (DKIM, return-path and DMARC records). Campaigns add the sender's postal address and an unsubscribe link automatically. - Pricing: $9 for 10,000 emails, $29 for 50,000 emails, $99 for 250,000 emails, $499 for 2,000,000 emails. One credit sends one email. No subscription; credits never expire. Optional auto-recharge. - New accounts warm up over 14 days: 1,000, then 5,000, then 20,000, then 50,000 emails a day. - Works with Claude, Codex, Cursor, Windsurf, GitHub Copilot and any MCP client. ## Getting started - [Introduction](https://agent.maillayer.com/docs): Maillayer is email you run by asking your AI agent: campaigns, transactional email, templates and contacts, with an MCP server and a REST API. - [Quickstart](https://agent.maillayer.com/docs/quickstart): Sign up, verify your domain, connect your AI agent and send your first email by asking for it, in about five minutes. - [Connect your AI agent](https://agent.maillayer.com/docs/mcp): Connect Claude, Codex, Cursor or any MCP client to Maillayer, then just ask: send email, add contacts, write templates and run campaigns. - [Verify a sending domain](https://agent.maillayer.com/docs/domains): Add your domain to Maillayer and publish the DKIM, return-path and DMARC records so inboxes trust your email. ## Guides - [Send transactional email](https://agent.maillayer.com/docs/sending-email): Send receipts, password resets and alerts with one API call. Idempotency keys, delivery status and test sends explained. - [Templates and variables](https://agent.maillayer.com/docs/templates): Reusable email templates with Liquid variables like {{ first_name }}, defaults, aliases and the visual or HTML editor. - [Contacts and lists](https://agent.maillayer.com/docs/contacts): Add contacts by API or CSV import (up to 250,000 rows), group them into lists, store custom properties and locations. - [Campaigns](https://agent.maillayer.com/docs/campaigns): Write a campaign, send it to one or more lists without duplicates, schedule it, warm up a new domain and read the results. - [Contact checks](https://agent.maillayer.com/docs/contact-checks): How Maillayer checks every new contact for bad addresses, dead domains, disposable inboxes and spam-listed IPs, and skips risky ones. - [Deliverability](https://agent.maillayer.com/docs/deliverability): Sending limits and warm-up for new accounts, bounces, spam complaints, suppressions and one-click unsubscribe in Maillayer. - [Credits and billing](https://agent.maillayer.com/docs/billing): Maillayer is pay-per-email: one-time packs from $9 for 10,000 emails that never expire, plus optional auto-recharge. ## API reference - [API overview](https://agent.maillayer.com/docs/api): Maillayer REST API basics: base URL, API key authentication, JSON requests, errors, status codes and idempotency. - [Emails](https://agent.maillayer.com/docs/api/emails): API reference for sending a transactional email and reading its delivery status and events. - [Contacts](https://agent.maillayer.com/docs/api/contacts): API reference for creating, updating and deleting contacts, with lists, properties, sign-up IP and location. - [Lists](https://agent.maillayer.com/docs/api/lists): API reference for listing your contact lists and how many contacts each one has. - [Templates](https://agent.maillayer.com/docs/api/templates): API reference for listing templates and creating or updating a template by alias. - [Campaigns](https://agent.maillayer.com/docs/api/campaigns): API reference for creating campaign drafts, sending or scheduling them with warm-up, and reading their results. - [Domains](https://agent.maillayer.com/docs/api/domains): API reference for listing your sending domains and whether each one can send. ## Legal - [Terms of Service](https://agent.maillayer.com/terms): The terms for using Maillayer, credits and payments. - [Privacy Policy](https://agent.maillayer.com/privacy): What data Maillayer handles and why. - [Acceptable Use Policy](https://agent.maillayer.com/acceptable-use): What you can and can't send. ## Optional - [Pricing](https://agent.maillayer.com/#pricing): Credit packs and the pricing calculator. - [Sign up](https://agent.maillayer.com/signup): Create an account. - [Support](mailto:hello@maillayer.com): Questions, billing and abuse reports.