# MarleyFetch > MarleyFetch sends email through the SMTP account you already have (Gmail, Google Workspace, Microsoft 365, Amazon SES, SendGrid or any SMTP host), so mail goes out from your own address. Send with one HTTPS call from code, or connect an AI agent through its MCP server. Queues, retries, batches, audiences, templates, hosted forms and per-connection rate limits are handled for you. - REST API: `https://api.marleyfetch.com/v1`, authenticated with `Authorization: Bearer `. Create keys at https://app.marleyfetch.com/tokens. - MCP server: `https://api.marleyfetch.com/mcp` (Streamable HTTP). Agents sign in with OAuth or send an API key as a Bearer header. Its tools cover account limits, sending, templates, audiences and batches. - Call `GET /v1/account` (MCP tool `get_account`) to learn the plan, its limits and each connection's remaining quota before sending. - Plans are Free and Pro. Batch sending, audiences and `/v1/enqueue` are Pro-only and return `403 FEATURE_NOT_AVAILABLE` on Free. - One `/v1/send` takes up to 10 recipients across to, cc and bcc; use `/v1/send/batch` for more. - `POST /v1/send/template` (MCP tool `send_template_email`) sends a saved template by name with only its `variables`, so the layout stays in the template. - Every page below is plain Markdown. ## Get started - [Quickstart](https://docs.marleyfetch.com/getting-started.md): Connect an SMTP account, create an API key and send your first email. - [MCP server for AI agents](https://docs.marleyfetch.com/mcp.md): Connect Claude Code, Claude or any MCP client so an AI agent can send email from your own mailbox, check your plan and quota, and manage templates, audiences and batches. - [JavaScript SDK](https://docs.marleyfetch.com/sdk.md): The @marleyfetch/sdk package — a zero-dependency, chainable JavaScript/TypeScript client for Node.js, Workers, Vercel, Deno and Bun. ## Guides - [SMTP connections](https://docs.marleyfetch.com/guides/connections.md): Add the SMTP account MarleyFetch sends through, provider settings, the default connection, quotas and pacing. - [API keys](https://docs.marleyfetch.com/guides/api-keys.md): Create, scope, rotate and revoke the API keys that authenticate requests. - [Sending email](https://docs.marleyfetch.com/guides/sending.md): Send a single email with /v1/send or queue it with /v1/enqueue — recipients, HTML, idempotent retries and responses. - [Batch sending](https://docs.marleyfetch.com/guides/batches.md): Send one message to many recipients with /v1/send/batch, personalise it per recipient and track progress. - [Audiences](https://docs.marleyfetch.com/guides/audiences.md): Build reusable recipient lists with per-member variables, add members by API or dashboard, and collect sign-ups with a hosted page. - [Templates](https://docs.marleyfetch.com/guides/templates.md): Save a subject and layout once, then send it by name with only the text, or to an audience in a batch, with {{placeholders}} filled in. - [Forms](https://docs.marleyfetch.com/guides/forms.md): Hosted contact and feedback forms whose submissions are emailed to you through your own connection. ## Reference - [API reference](https://docs.marleyfetch.com/api/index.md): Every public endpoint, request field and response, generated from the OpenAPI spec. - [Errors](https://docs.marleyfetch.com/reference/errors.md): Error response shapes, every error code with its cause and fix, and how to retry rate limits. - [Plans & limits](https://docs.marleyfetch.com/reference/limits.md): What the Free and Pro plans include, the request limits that apply to everyone, and GET /v1/account for checking your plan, limits and quota usage. - [Docs for AI tools](https://docs.marleyfetch.com/ai.md): Machine-readable docs for coding assistants and LLMs — llms.txt, llms-full.txt, per-page Markdown and the OpenAPI spec — and where to connect an agent over MCP. ## Optional - [OpenAPI spec](https://docs.marleyfetch.com/openapi.yaml): Machine-readable OpenAPI 3.1 description of every public endpoint. - [Full documentation](https://docs.marleyfetch.com/llms-full.txt): Every page above plus the OpenAPI spec in a single file.