Skip to content

Developers

API documentation

The Coldireach REST API lets you push leads in from your CRM, forms or enrichment tools, pause and resume campaigns, and pull campaign, account and analytics data into your own reports. All requests and responses are JSON. The API is included in the Growth and Agency plans.

Authentication

Create an API key in your workspace under Settings → API keys. Keys start with cr_live_, belong to one workspace, and are shown only once — store them like a password. Send the key as a Bearer token:

curl https://coldireach.com/api/v1/campaigns \
  -H "Authorization: Bearer cr_live_your_key"

Revoke a key from the same settings page at any time; revoked keys stop working immediately.

Rate limits

Each key can make 120 requests per minute. Above that the API answers 429 rate_limited with a Retry-After header. Use the bulk lead endpoint (up to 1,000 leads per request) instead of one request per lead.

Errors

Errors use standard HTTP status codes and one JSON shape:

{ "error": { "code": "validation_error", "message": "…", "details": [ … ] } }
StatusCodeMeaning
400validation_error / invalid_jsonThe request body or a parameter is invalid.
401unauthorizedMissing, malformed, invalid or revoked API key.
403plan_required / workspace_suspended / lead_limitThe plan doesn't include the API, the workspace is suspended, or the request would exceed the lead limit.
404not_foundThe resource doesn't exist in this workspace.
409invalid_state / campaign_closedThe campaign isn't in a state that allows the action.
429rate_limitedToo many requests — wait and retry.

Leads

GET/api/v1/leads

List leads, newest first, with cursor pagination.

Query parameterTypeDescription
limit1–100Page size (default 50).
cursorstringPass the previous response's nextCursor to get the next page.
statuslead statusnew, contacted, replied, interested, meeting_booked, not_interested, bounced, unsubscribed.
listIdidOnly leads in this list.
emailstringExact email match (case-insensitive).

Response

{ "data": [ { …lead } ], "hasMore": true, "nextCursor": "6730c1f2a4b5c6d7e8f90123" }

POST/api/v1/leads

Create or update up to 1,000 leads by email, optionally adding them to a list and/or a campaign. Returns 201 when at least one lead was created.

Request body

{
  "leads": [
    {
      "email": "[email protected]",
      "firstName": "Jane",
      "company": "Acme",
      "customFields": { "industry": "SaaS" }
    }
  ],
  "listId": "6730c1f2a4b5c6d7e8f90001",
  "campaignId": "6730c1f2a4b5c6d7e8f90456",
  "updateExisting": true
}

Response

{
  "data": {
    "received": 1, "unique": 1, "created": 1,
    "updated": 0, "skipped": 0, "addedToCampaign": 1
  }
}

GET/api/v1/leads/:id

Get one lead.

Response

{ "data": {
  "id": "6730c1f2a4b5c6d7e8f90123",
  "email": "[email protected]",
  "firstName": "Jane",
  "lastName": "Doe",
  "company": "Acme",
  "title": "Head of Sales",
  "phone": "",
  "website": "acme.com",
  "linkedin": "",
  "location": "Berlin",
  "timezone": "Europe/Berlin",
  "customFields": { "industry": "SaaS" },
  "listIds": ["6730c1f2a4b5c6d7e8f90001"],
  "status": "new",
  "verificationStatus": "unknown",
  "source": "api",
  "lastContactedAt": null,
  "createdAt": "2026-11-18T09:30:00.000Z",
  "updatedAt": "2026-11-18T09:30:00.000Z"
} }

PATCH/api/v1/leads/:id

Update a lead's fields or status. Custom fields are merged key by key; the email address can't be changed.

Request body

{ "title": "VP Sales", "status": "interested", "customFields": { "stage": "demo" } }

Response

{ "data": { …lead } }

DELETE/api/v1/leads/:id

Delete a lead and remove it from every campaign.

Response

{ "data": { "id": "6730c1f2a4b5c6d7e8f90123", "deleted": true } }

Campaigns

GET/api/v1/campaigns

List campaigns, most recently updated first, with page pagination.

Query parameterTypeDescription
statuscampaign statusdraft, active, paused, completed, archived.
pagenumberPage number (default 1).
limit1–100Page size (default 50).

Response

{ "data": [ { …campaign } ], "page": 1, "limit": 50, "total": 12, "hasMore": false }

GET/api/v1/campaigns/:id

Get one campaign with its lifetime stats.

Response

{ "data": {
  "id": "6730c1f2a4b5c6d7e8f90456",
  "name": "Q4 founders — EU",
  "audience": "",
  "status": "active",
  "mailboxIds": ["6730c1f2a4b5c6d7e8f90777"],
  "stepCount": 3,
  "timezone": "Europe/Berlin",
  "launchedAt": "2026-11-01T08:00:00.000Z",
  "completedAt": null,
  "createdAt": "2026-10-30T12:00:00.000Z",
  "updatedAt": "2026-11-18T09:30:00.000Z",
  "stats": {
    "leads": 500, "sent": 1210, "opened": 0, "clicked": 0,
    "replied": 61, "positive": 18, "meetings": 7,
    "bounced": 9, "unsubscribed": 4, "completed": 140,
    "replyRate": 5.04, "progress": 28
  }
} }

POST/api/v1/campaigns/:id/pause

Pause an active campaign. Calling it on an already paused campaign is a no-op; other states return 409.

Response

{ "data": { …campaign, "status": "paused" } }

POST/api/v1/campaigns/:id/resume

Resume a paused campaign. Calling it on an already active campaign is a no-op; other states return 409.

Response

{ "data": { …campaign, "status": "active" } }

Email accounts

GET/api/v1/accounts

List connected sending accounts with today's usage, warmup and DNS health. Credentials are never returned.

Response

{
  "data": [
    {
      "id": "6730c1f2a4b5c6d7e8f90777",
      "email": "[email protected]",
      "fromName": "Alex Morgan",
      "provider": "smtp",
      "status": "active",
      "statusReason": null,
      "dailyLimit": 30,
      "sentToday": 12,
      "lastSentAt": "2026-11-18T09:12:00.000Z",
      "warmup": { "enabled": true, "reputation": 97 },
      "health": { "spf": true, "dkim": true, "dmarc": true, "bounceRate7d": 0.4, "checkedAt": "2026-11-18T06:00:00.000Z" },
      "createdAt": "2026-10-01T10:00:00.000Z"
    }
  ]
}

Analytics

GET/api/v1/analytics

Totals for a date range, the previous period and the change between them, plus a daily or weekly series. Defaults to the last 30 days.

Query parameterTypeDescription
from, toYYYY-MM-DDDate range — pass both or neither.
granularityday | weekSeries bucket size (default day).
campaignIdidScope to one campaign.
mailboxIdidScope to one email account (not together with campaignId).

Response

{
  "data": {
    "from": "…", "to": "…",
    "totals": { "sent": 1210, "replied": 61, "positive": 18, "meetings": 7, "bounced": 9, … },
    "previous": { "from": "…", "to": "…", "totals": { … } },
    "deltas": { … },
    "series": [ { "date": "2026-11-17", "sent": 42, "replied": 3, … } ]
  }
}

Lead fields accepted by the create and update endpoints: email, firstName, lastName, company, title, phone, website, linkedin, location, timezone and customFields (up to 100 keys). Need something the API doesn't cover yet? Tell us.