Getting started Markdown

anymail developer documentation

The anymail REST API reads and writes the data of one workspace: prospects, campaigns with their steps and statistics, the inbox, companies, offers, suppressions, webhook subscriptions, mailboxes and domains. Every response is JSON. An MCP server exposes the same operations to LLM clients such as Claude and ChatGPT, and a CLI wraps them for scripts.

Base URL#

https://app.anymail.watch/api/v1

The version is the /api/v1/ path prefix. There is no other versioning mechanism. The API has no CORS headers, so call it from a server or a script.

What you can do#

Resource Reads Writes
Prospects List, search, get Create, update, delete, anonymise
Campaigns List, get, list enrolments Create, update, delete a draft, start, pause, resume, stop, enrol prospects
Steps and variants List Add, edit, delete steps and A/B variants
Statistics Totals, funnel, per step and variant None
Companies List, get with account temperature None
Replies List classified replies Correct a classification
Inbox List messages with the full text Answer a message
Offers List, get with visits and reading time None
Suppressions List Create, delete
Webhook subscriptions List Subscribe, unsubscribe
Mailboxes List, get Change limit, sender name, signature, pause
Domains SPF, DKIM, DMARC, tracking domain None
Workspaces The workspace of the token None

The API has 47 operations, all in the OpenAPI document. The MCP server offers 47 tools over them.

Conventions#

  • Authentication. Send a workspace API token as Authorization: Bearer sgn_…. A token has the read scope, or read and write. MCP clients can sign in with OAuth. See Authentication.
  • Isolation. A token sees only its own workspace. A resource from another workspace returns 404.
  • Rate limit. 60 requests per minute per token. See Rate limits.
  • Lists. Every list returns {"data": [...], "next_cursor": "..."}. See Pagination.
  • Errors. Every error returns JSON with an error message. See Errors.
  • Timestamps. ISO 8601 with a time zone, for example 2026-09-03T10:00:00.123456+00:00.
  • Unknown input. Unknown query parameters are ignored. The campaign, step and mailbox writes reject unknown body fields with 400. The older endpoints ignore them. A known parameter with an invalid value returns 400.

Where to start#

  1. Follow the Quick start to generate a token and make a first call.
  2. Read Idempotency keys before you write from a script that retries.
  3. Subscribe to events with Webhooks, or connect Claude, ChatGPT, Claude Code or Cursor to the MCP server.
  4. Import the OpenAPI document or the Postman collection to explore every endpoint.

The changelog lists every change to the API.