---
title: "Cold email API and MCP server"
url: "https://coldagentai.com/product/api.md"
canonical_url: "https://coldagentai.com/product/api"
last_updated: "2026-10-19"
type: "guide"
summary: "Read and write API keys, one error format, signed webhooks and an MCP server, so agents can run your cold email."
related: ["https://coldagentai.com/product.md", "https://coldagentai.com/product/sequences.md", "https://coldagentai.com/product/inboxes.md", "https://coldagentai.com/product/deliverability.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Cold email API and MCP server

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Read and write API keys, one error format, signed webhooks and an MCP server, so agents can run your cold email.

Everything a person can do, an agent can do.

The REST API covers accounts, mailboxes, campaigns, leads, replies, credits and more. Webhooks announce what happened, and an MCP server maps the same handlers onto tools.

## What it does

### Keys and scopes

A read key can only read. Routes that change state, send mail or spend credits need a write key.

### OpenAPI 3.1

The API publishes an OpenAPI document with the scope of every operation.

### One error format

Every error returns a code, a message, a fix, a docs link, a retry flag and a request id.

### Webhooks

Ten events from EmailSent to CampaignCompleted, HTTPS only, a signing secret shown once, bounded retries and a guard against private addresses.

### MCP server

A streamable HTTP endpoint at /v1/mcp with tools for campaigns, leads, replies, credits and checks. Spending and sending tools say so in their descriptions.

### Capabilities

GET /v1/capabilities lists the capabilities your account can use, so an agent reads it before choosing a flow.

## Questions

### Can an agent spend credits?

Only with a write key. Tools that spend credits or send mail say so in their descriptions.

### Where is the API reference?

In the docs, with every route, scope, error code and webhook event, plus an OpenAPI 3.1 document.

## Related

- [ColdAgentAI product: cold email, inboxes and API](https://coldagentai.com/product.md)
- [Cold email sequences](https://coldagentai.com/product/sequences.md)
- [Connected mailboxes](https://coldagentai.com/product/inboxes.md)
- [Deliverability checks](https://coldagentai.com/product/deliverability.md)
