AI & automation

Automate with the REST API

Everything the platform does, over plain HTTPS + JSON — same operations as MCP, same API key.

One key, two protocols

ColdPegion is API-native: the REST API at /api/v1 exposes the exact same operations as the MCP server — list and launch agents, import leads, push per-lead emails, read replies and deliverability, manage your team. The cp_live_ key you create in Dashboard → Connect to Claude authenticates both.

Your first request

  1. 1Create an API key in Dashboard → Connect to Claude (shown once — copy it).
  2. 2curl https://coldpegion.com/api/v1/overview -H "Authorization: Bearer cp_live_..."
  3. 3Browse the full reference at /docs/api — every endpoint with parameters and copy-paste curl examples.

Built to industry standards

  • Bearer auth with scoped keys (read / write), stored hashed, revocable instantly.
  • 120 requests/min per key with X-RateLimit-* headers and Retry-After on 429.
  • Consistent envelope: { data, request_id } on success, typed errors ({ error: { type, message, param } }) on failure.
  • Idempotency-Key header on mutating requests for safe retries.
  • Versioned under /v1 — breaking changes ship as /v2, never silently.

For AI agents and tooling

The reference is machine-readable three ways: /docs/api.md serves the whole reference as one markdown document (drop it into any LLM's context), /api/v1/openapi.json is an OpenAPI 3.1 spec for codegen and Postman, and /llms.txt maps the site for AI agents.

Building on the API and stuck? Email support@coldpegion.com with the request_id from the failing response.

Still stuck? Ask an AI that can actually fix it.

Open the Sidekick in your dashboard — it has these guides built in and can inspect and fix your account directly.

Or ask Claude with the MCP connector — same guides, same tools, from any Claude app.