Back
CC
API Reference
v1

Cheap Call Center API

The short version

This page is for developers. Most people don't need it: you can do everything here in your dashboard. An API key lets your own software add leads, start campaigns and read call results. Make a key in Settings → API keys and keep it secret. Each key can only do what you allow (read, write, or remove Do-Not-Call entries). Every call still goes through the same safety checks as the dashboard.

Programmatic access to your AI call center. Manage leads, launch campaigns, monitor calls, and pull analytics — all from your own code. The API is in early access, and endpoints may change before launch.

Authentication

All requests require a Bearer token in the Authorization header. Create keys in Settings → API Keys. A key is shown once; only its hash is stored.

Authorization: Bearer YOUR_API_KEY
Rate Limits

Target limit: 100 requests per minute per API key. Responses include an X-RateLimit-Remaining header, and 429 responses include Retry-After.

X-RateLimit-Remaining: 97
Base URL
https://www.cheapcallcenter.com/api/v1available at launch
Key scopes and errors
Every key carries scopes, chosen when it is created
  • read: GET and HEAD requests.
  • write: every other method (POST, PATCH, DELETE).
  • compliance:admin: admin-only compliance operations. Removing a number from the do-not-call list (DELETE /api/v1/compliance/dnc) needs it. Only a workspace admin can create such a key.

A key without the needed scope gets 403 with error code INSUFFICIENT_SCOPE. Keys created before scopes existed keep read and write, but not compliance:admin. Breaking change: integrations that call DELETE /api/v1/compliance/dnc with such a key now get 403 and need a new compliance-admin key.

{ "error": { "code": "INSUFFICIENT_SCOPE", "message": "…" } }

Other errors use the same shape: 401 UNAUTHORIZED (missing, invalid or revoked key), 403 TENANT_INACTIVE (workspace without an active subscription), 402 PAYMENT_REQUIRED (an action that needs a plan), 422 VALIDATION_ERROR and 429 with Retry-After.

Quick Example
Find leads in any industry, then queue the callable ones into a B2B campaign
# 1. Search for businesses (any industry, any US area)
curl -X POST https://www.cheapcallcenter.com/api/v1/leads/search \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "industry": "HVAC contractors",
    "geography": {"mode": "place", "query": "Columbus, OH"},
    "maxResults": 100
  }'

# 2. Poll the job until it finishes
curl https://www.cheapcallcenter.com/api/v1/leads/search/JOB_ID \
  -H "Authorization: Bearer YOUR_API_KEY"

# 3. Queue its landline / fixed-VoIP numbers into a Lane B campaign
curl -X POST https://www.cheapcallcenter.com/api/v1/campaigns/CAMPAIGN_ID/leads \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"search_job_id": "JOB_ID"}'

Endpoints

Lead search

Find businesses in any industry automatically. Searched leads have no consent, so they can only be queued into B2B cold-call (Lane B) campaigns, only for landline or fixed-VoIP numbers, and not in states that don't allow AI cold calls to businesses (California, Minnesota and Pennsylvania today).

POST
/api/v1/leads/search

Start a search job: { industry, icp?, keywords?, geography: {mode:"place",query} | {mode:"postal_radius",postalCode,radiusMeters} | {mode:"bbox",bbox:[s,w,n,e]}, skipChains?, maxResults?, campaignId?, tier? }. query can be a city, a county, a whole state, or up to 6 places with ; between them. icp says who you want to reach, in your own words; leave it out and the search is rated against the "Who you want to reach" text saved in Settings, Business info (none saved: rated on the industry alone). skipChains (on unless you send false) leaves out national chains and franchises. Searches for health care, emergency, police or fire businesses are refused, because an AI voice may not cold-call them. tier "ideal" makes an ideal call list: it searches deeper, checks every number and ranks by fit, and holds maxResults lead credits (402 INSUFFICIENT_CREDITS when the balance is short). You pay one credit per delivered lead (new to you, a verified business landline, not on Do-Not-Call, at or above the fit threshold when AI scoring runs); the rest are released when the list finishes. Returns 202 with the job id.

GET
/api/v1/leads/credits

Lead credit balance for ideal call lists: { balance, held, unitCents }. Credits are bought in the dashboard.

GET
/api/v1/leads/search

List recent search jobs

GET
/api/v1/leads/search/:jobId

Job status and counts (found, created, duplicates, withPhone, laneBEligible, mobileDenied, errors). For each business the search keeps its main phone line and at most one second line; numbers on its website that belong to someone else (a licence board, another branch, a vendor) are not saved. When the business's own website names its owner or manager, the lead gets contactName and contactTitle.

Leads

Manage your lead database

GET
/api/v1/leads

List leads with pagination, filtering by status and search. Each lead has contactName, contactTitle and contactSource: for a business, the person to ask for. contactSource is "website" when we read the name from the business's own website, and null when you entered it. Each phone has verdict ("primary" = main line, "alternate" = second line), seenOn ("listing" or "website") and detail. callNote says why a lead with a callable landline is still left off call lists (poor fit, a fit rating still to come, a state Do-Not-Call list you have not added, or an area code your National Do Not Call list does not hold). scoreReason is the reason for the fit score. fitState says where an unrated lead stands: waiting, could_not_rate or not_expected. Send eligibility=lane_b and fit=good for the leads that are ready to call. fit can also be poor or unrated.

POST
/api/v1/leads

Create a lead with optional phone numbers (any format; normalized to E.164). Client-supplied line types are ignored. Optional contactName and contactTitle: for a business, the person your assistant should ask for.

GET
/api/v1/leads/:id

Get a single lead by ID

PATCH
/api/v1/leads/:id

Update a lead's details. Sending contactName (and optionally contactTitle) makes the contact yours: a later website read never replaces it. On calls to a business, your assistant asks for this person; it never assumes they answered the phone.

POST
/api/v1/leads/import

Bulk import up to 1,000 leads (each may carry contactName and contactTitle). Returns { imported, skippedDuplicates, invalidPhones, skippedSameName }; numbers you already have are skipped, and so are rows with no phone whose name, company and email match a lead with no phone.

Campaigns

Create and manage calling campaigns

GET
/api/v1/campaigns

List all campaigns with pagination

POST
/api/v1/campaigns

Create a new campaign with lane, assistant (persona in the API), purpose and schedule

GET
/api/v1/campaigns/:id

Get campaign details including stats

PATCH
/api/v1/campaigns/:id

Update campaign settings, or set status: active (start/resume), paused, completed (stop) or archived. Starting returns 402 PAYMENT_REQUIRED when the workspace has no active plan, and 422 VALIDATION_ERROR when an outbound campaign's purpose is empty or reserved (e.g. test_call, requested_callback, *, any, all).

POST
/api/v1/campaigns/:id/leads

Queue leads: { lead_ids } or filters { industry, search_job_id, tag, source }. Only lane-eligible numbers are queued, one number per business. Returns { matched, queued, skipped_ineligible, skipped_dnc, already_queued, skipped_low_fit, skipped_sensitive, skipped_state_list, state_lists_needed, skipped_unrated, skipped_area_code, area_codes_needed, not_reached }: skipped_dnc counts numbers left out because they are on your own Do-Not-Call list; skipped_low_fit counts businesses whose fit score is below 50; skipped_sensitive counts health care and emergency businesses; skipped_state_list counts businesses in a state whose own Do-Not-Call list you have not added yet (state_lists_needed names the states); skipped_unrated counts businesses a search found that are still waiting for their fit rating (send the request again once they are rated); skipped_area_code counts businesses in an area code your National Do Not Call list does not hold (area_codes_needed names them); not_reached counts leads that match a filter but were not looked at because more than 5,000 matched (the best fits go first; send the same request again for the rest).

Calls

View call history and details

GET
/api/v1/calls

List calls with filtering by campaign, outcome, direction, date range

GET
/api/v1/calls/:id

Call detail: summary, outcome, transcript, recording URL, events, compliance decision, consent, transfers, appointments and who ended the call (endedBy: caller, assistant or system; null when not known). recordingUrl is a short-lived Telnyx download link fetched fresh for each request: download the file right away, don't store the URL.

Assistants

Set up the assistants that talk on your calls. The API calls an assistant a persona.

GET
/api/v1/personas

List all assistants

POST
/api/v1/personas

Create an assistant. disclosureTemplate is required and must disclose the AI; voiceConfig.provider must be "elevenlabs".

GET
/api/v1/personas/:id

Get an assistant's details

PATCH
/api/v1/personas/:id

Update an assistant's settings

DELETE
/api/v1/personas/:id

Delete an assistant

Compliance

Do-Not-Call lists and the pre-call compliance gate

POST
/api/v1/compliance/evaluate

Run the full compliance gate for a number (lane, consent, DNC lists, reassigned numbers, calling hours, frequency caps, line type, disclosures). Writes an audit row. 503 GATE_UNAVAILABLE if the decision can't be recorded.

POST
/api/v1/compliance/dnc-check

Read-only status lookup: internal, federal and state DNC listings and active consent. Not a dial decision (use evaluate).

POST
/api/v1/compliance/dnc

Add a number to your internal Do-Not-Call list

DELETE
/api/v1/compliance/dnc

Remove a number you added. Needs a key with the compliance:admin scope (403 INSUFFICIENT_SCOPE otherwise, including keys created before scopes existed). Consumer opt-outs can't be removed (409).

Analytics

Reporting and metrics

GET
/api/v1/analytics/overview

Get high-level metrics: total calls, leads, answer rate, average duration, spend

GET
/api/v1/analytics/call-volume

Get call volume over time with configurable granularity

Usage

What your workspace has used and the limits that stop new calls

GET
/api/v1/usage

Today and this month (UTC): calls, billable minutes, estimated charges, progress against your monthly cap on call charges, daily call limit and daily minute limit, calls in progress, today's AI budget, per-campaign minutes and the last 30 days. A section that couldn't be loaded is null.

Need help?

Questions? Email api-support@cheapcallcenter.com.