# anymail developer documentation

> Source: https://developers.anymail.watch/

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](/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](/prospects/) | List, search, get | Create, update, delete, anonymise |
| [Campaigns](/campaigns/) | List, get, list enrolments | Create, update, delete a draft, start, pause, resume, stop, enrol prospects |
| [Steps and variants](/campaign-steps/) | List | Add, edit, delete steps and A/B variants |
| [Statistics](/campaign-stats/) | Totals, funnel, per step and variant | None |
| [Companies](/companies/) | List, get with account temperature | None |
| [Replies](/replies/) | List classified replies | Correct a classification |
| [Inbox](/inbox/) | List messages with the full text | Answer a message |
| [Offers](/offers/) | List, get with visits and reading time | None |
| [Suppressions](/suppressions/) | List | Create, delete |
| [Webhook subscriptions](/webhook-subscriptions/) | List | Subscribe, unsubscribe |
| [Mailboxes](/mailboxes/) | List, get | Change limit, sender name, signature, pause |
| [Domains](/domains/) | SPF, DKIM, DMARC, tracking domain | None |
| [Workspaces](/workspaces/) | The workspace of the token | None |

The API has 47 operations, all in the [OpenAPI document](/openapi/). The [MCP server](/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](/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](/rate-limits/).
- **Lists.** Every list returns `{"data": [...], "next_cursor": "..."}`. See [Pagination](/pagination/).
- **Errors.** Every error returns JSON with an `error` message. See [Errors](/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](/quick-start/) to generate a token and make a first call.
2. Read [Idempotency keys](/idempotency-keys/) before you write from a script that retries.
3. Subscribe to events with [Webhooks](/webhooks/), or connect [Claude](/mcp-claude/), [ChatGPT](/mcp-chatgpt/), [Claude Code](/mcp-claude-code/) or [Cursor](/mcp-cursor/) to the MCP server.
4. Import the [OpenAPI document or the Postman collection](/openapi/) to explore every endpoint.

The [changelog](/changelog/) lists every change to the API.
