---
title: "API reference"
url: "https://coldagentai.com/docs/api.md"
canonical_url: "https://coldagentai.com/docs/api"
last_updated: "2026-11-05"
type: "reference"
summary: "The ColdAgentAI API reference: one page per resource, generated from the OpenAPI document, with parameters, examples, scopes and errors."
related: ["https://coldagentai.com/docs/authentication.md", "https://coldagentai.com/docs/errors.md", "https://coldagentai.com/docs/webhooks.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# API reference

> **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.

The ColdAgentAI API reference: one page per resource, generated from the OpenAPI document, with parameters, examples, scopes and errors.

The reference for every ColdAgentAI API operation, one page per resource. Each page is generated from the same OpenAPI document the API serves, so a method, a path, a scope or a field here is the one the API has.

## Conventions

Base URL: `https://api.coldagentai.com`. Authenticate with a key as described in [Authentication](https://coldagentai.com/docs/authentication.md). Failed calls return the single format on the [Errors](https://coldagentai.com/docs/errors.md) page, and the shapes of every body are on the [Models](https://coldagentai.com/docs/models.md) page.

- Send JSON bodies with Content-Type: application/json. Bodies have a size limit; split large batches.
- Every authenticated response carries X-Request-Id, X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
- Prospect sourcing and email verification accept an Idempotency-Key header (1 to 100 letters, digits or _ . : -), so a retry is not charged twice.
- The API publishes an OpenAPI 3.1 document at /openapi.json with an x-scope value on every operation.
- Timestamps are ISO 8601 strings in UTC.

Plans and credits reach an account in one way: a Stripe event the server verified at `POST /v1/billing/webhook`, or an operator command. No request body sets a price, a plan or a credit count.

## Resources

| Resource | Operations | What it covers |
| --- | --- | --- |
| [Accounts](https://coldagentai.com/docs/api/accounts.md) | 5 | Read the account with its plan, credit wallets and usage, and create or revoke API keys. |
| [Compliance](https://coldagentai.com/docs/api/compliance.md) | 4 | The postal address and sender identity every campaign email carries, and the public unsubscribe routes a recipient reaches from a message. |
| [Autopilot](https://coldagentai.com/docs/api/autopilot.md) | 8 | Create a run that writes a campaign from a website, read it, approve, resume or cancel it, and read or flip the kill switch. |
| [Blocklist](https://coldagentai.com/docs/api/blocklist.md) | 3 | The do-not-contact list: addresses and domains that are never emailed. |
| [Campaigns](https://coldagentai.com/docs/api/campaigns.md) | 12 | Create, schedule, change, start and pause campaigns, replace the sequence, preview a step for a real lead and read analytics. Leads are on the Leads page. |
| [Capabilities](https://coldagentai.com/docs/api/capabilities.md) | 1 | Read what the server can do and, for each capability that cannot run, the blocker and the reason. |
| [Credits](https://coldagentai.com/docs/api/credits.md) | 1 | Read the credit wallets that verification, prospect sourcing and autopilot approval spend from. |
| [Domains](https://coldagentai.com/docs/api/domains.md) | 5 | Search sending domains, order a domain, order done-for-you mailboxes and read orders. |
| [Leads](https://coldagentai.com/docs/api/leads.md) | 4 | Add leads to a campaign by JSON or CSV, list them and change a lead status. |
| [Mailboxes](https://coldagentai.com/docs/api/mailboxes.md) | 12 | Connect a Gmail, Microsoft or IMAP and SMTP mailbox, read and change it, run a check and disconnect it. |
| [Prospects](https://coldagentai.com/docs/api/prospects.md) | 3 | Source prospects that match an ideal customer profile, and save or list profiles. |
| [Replies](https://coldagentai.com/docs/api/replies.md) | 4 | Read replies from every mailbox in one list, mark a category, write an answer with AI and send it. |
| [Verification](https://coldagentai.com/docs/api/verification.md) | 2 | Verify a batch of email addresses and read an earlier batch. |
| [Webhook endpoints](https://coldagentai.com/docs/api/webhooks.md) | 6 | Register an HTTPS endpoint and its events, change or delete it, send a signed test event and read its delivery log. The event names and the signature rules are on the Webhooks page. |
| [Billing](https://coldagentai.com/docs/api/billing.md) | 5 | Start a Stripe Checkout, open the billing portal and read billing state. Stripe calls the webhook route with signed events; no request body sets a plan, a price or a credit count. |
| [Imports](https://coldagentai.com/docs/api/imports.md) | 2 | Bring campaigns and leads in from another sender. |
| [Tools](https://coldagentai.com/docs/api/tools.md) | 5 | Stateless helpers that need only a read key: the DNS authentication check, the MX lookup, spintax, the subject line lint and email pattern guesses. |
| [System and MCP](https://coldagentai.com/docs/api/system.md) | 6 | The public system routes, the machine-readable documents, the health check and the MCP endpoint. The MCP tools are described on the MCP server page. |

Tools for working with the whole reference: the [OpenAPI document](https://coldagentai.com/docs/openapi.md), the [Postman collection](https://coldagentai.com/docs/postman.md) and the [Models](https://coldagentai.com/docs/models.md) page.

## Related

- [API authentication](https://coldagentai.com/docs/authentication.md)
- [API errors](https://coldagentai.com/docs/errors.md)
- [Webhooks](https://coldagentai.com/docs/webhooks.md)
