API reference
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.
For AI agents: the docs index is at /llms.txt, and every page is also served as markdown at its URL plus .md.
#Conventions
Base URL: https://api.coldagentai.com. Authenticate with a key as described in Authentication. Failed calls return the single format on the Errors page, and the shapes of every body are on the Models 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 | 5 | Read the account with its plan, credit wallets and usage, and create or revoke API keys. |
| Compliance | 4 | The postal address and sender identity every campaign email carries, and the public unsubscribe routes a recipient reaches from a message. |
| Autopilot | 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 | 3 | The do-not-contact list: addresses and domains that are never emailed. |
| Campaigns | 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 | 1 | Read what the server can do and, for each capability that cannot run, the blocker and the reason. |
| Credits | 1 | Read the credit wallets that verification, prospect sourcing and autopilot approval spend from. |
| Domains | 5 | Search sending domains, order a domain, order done-for-you mailboxes and read orders. |
| Leads | 4 | Add leads to a campaign by JSON or CSV, list them and change a lead status. |
| Mailboxes | 12 | Connect a Gmail, Microsoft or IMAP and SMTP mailbox, read and change it, run a check and disconnect it. |
| Prospects | 3 | Source prospects that match an ideal customer profile, and save or list profiles. |
| Replies | 4 | Read replies from every mailbox in one list, mark a category, write an answer with AI and send it. |
| Verification | 2 | Verify a batch of email addresses and read an earlier batch. |
| Webhook endpoints | 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 | 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 | 2 | Bring campaigns and leads in from another sender. |
| Tools | 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 | 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, the Postman collection and the Models page.