Open in
Campaigns
Run outbound calling campaigns: upload contacts, set calling windows, and track outcomes.
A campaign dials a list of contacts with one of your agents, from
one or more of your outbound-capable numbers (its
number pool), inside a daily calling window in
the timezone you pick. The runner respects a per-campaign concurrency
cap and your organization's call limits
(a contact that meets a limit waits for a later pass without using an
attempt), and retries contacts whose calls ended in outcomes you selected
(no_answer, voicemail, failed, …) with a configurable backoff,
up to max_attempts per contact. See
calling hours and retry limits for
the timezone default, each contact's local time, the window warnings,
spread retries, double dial, and the retry bounds.
A campaign can also text each contact before the first
call.
Lifecycle: draft → (scheduled →) running → completed, with
paused and cancelled reachable via actions.
Contacts are only editable while the campaign is a draft.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /v1/campaigns | List campaigns |
POST | /v1/campaigns | Create a campaign (starts in draft) |
GET | /v1/campaigns/{campaign_id} | Retrieve a campaign incl. contacts |
PATCH | /v1/campaigns/{campaign_id} | Update a draft/scheduled/paused campaign |
DELETE | /v1/campaigns/{campaign_id} | Delete a campaign |
POST | /v1/campaigns/{campaign_id}/contacts | Add contacts (CSV upload or JSON) |
GET | /v1/campaigns/{campaign_id}/stats | Progress counters + recent calls |
POST | /v1/campaigns/{campaign_id}/{action} | start, pause, or cancel |
{campaign_id} is the campaign's UUID (public_id).
Campaign object
{
"public_id": "3f6b2c9e-…",
"name": "May win-back",
"agent": 12,
"agent_name": "Customer Support Agent",
"from_number": "+15551234567",
"from_numbers": ["+15551234567", "+12125550143"],
"max_calls_per_number_per_day": 75,
"status": "draft",
"blocked_reason": null,
"blocked_detail": null,
"timezone": "America/Los_Angeles",
"window_timezone_mode": "contact",
"calling_hours_mode": "state_defaults",
"calling_hours_exempt_states": [],
"daily_window_start": "09:00:00",
"daily_window_end": "17:00:00",
"start_at": null,
"end_at": null,
"max_concurrent_calls": 3,
"max_attempts": 2,
"retry_backoff_minutes": 60,
"retry_strategy": "spread",
"retry_on": ["no_answer", "voicemail", "failed"],
"double_dial": false,
"total_count": 0,
"completed_count": 0,
"failed_count": 0,
"in_progress_count": 0,
"pre_call_sms_enabled": false,
"pre_call_sms_from_number": "",
"pre_call_sms_template": "Hi {{first_name}}, this is {{org_name}}. We'll call you in a few minutes from {{call_from_number}}. Reply STOP to opt out of texts.",
"pre_call_sms_lead_minutes": 2,
"line_type_filter": "",
"skipped_count": 0,
"warnings": [],
"created_at": "2026-04-20T18:24:10.113Z",
"updated_at": "2026-04-20T18:24:10.113Z"
}| Field | Type | Description |
|---|---|---|
public_id | UUID | Campaign id (used in every path) |
name | string | 1–255 chars |
agent | integer | The Agent that speaks on every call (writable) |
agent_name | string | Read-only convenience |
from_number | string | The first number of the pool. Sending only from_number makes a pool of that one number. ThunderPhone numbers are accepted after outbound calling is approved for your organization |
from_numbers | array of string | The number pool: 1–50 outbound-capable E.164 numbers in your org, in order. Duplicates are dropped. Send this or from_number; from_number is always from_numbers[0] |
max_calls_per_number_per_day | integer | null | Outbound calls each pool number may place in a rolling 24 hours, 1–500. Default 75 for new campaigns; null means no per-number limit (campaigns created before pools have null). See number pools and pacing |
status | string | draft, scheduled, running, paused, completed, cancelled (read-only — change via actions) |
blocked_reason | string | null | Why a running campaign is holding contacts back right now (read-only): per_number_daily_limit (every pool number reached its limit) or org_daily_limit (the organization's daily or hourly outbound limit is used up; blocked_detail says which resets when). null while it can dial and whenever it is not running |
blocked_detail | string | null | A sentence explaining why a running campaign is holding contacts back (read-only). It is also set while blocked_reason is null for a newer reason that blocked_reason does not list, such as ThunderPhone's outbound capacity being in use |
timezone | string | IANA timezone the daily window is evaluated in, and with window_timezone_mode contact the fallback for contacts without a US or Canadian area code. When omitted on create, it defaults to the first pool number's zone (its area code in the US and Canada, its country elsewhere), else UTC |
window_timezone_mode | string | contact: the daily window runs in each contact's local time, from the contact's US or Canadian area code. campaign: it runs in timezone for every contact. Default contact for new campaigns; campaigns created before this setting are campaign |
calling_hours_mode | string | state_defaults: a US contact is called only while its state's calling hours also allow it, in the contact's local time (see state calling hours); contacts outside them wait. campaign_window: only the campaign's own window applies. Default state_defaults for new campaigns; campaigns created before this setting are campaign_window. Non-US contacts always follow the campaign's window |
calling_hours_exempt_states | array of string | Two-letter codes of US states, DC or territories (["TX"]) whose state hours this campaign skips: contacts there follow only the campaign's window. Names are accepted and stored as codes. Default [] |
daily_window_start, daily_window_end | time | Local calling window, e.g. "09:00:00"–"17:00:00". Calls start from daily_window_start up to, not at, daily_window_end. On create, send both or neither; neither means "09:00:00"–"17:00:00". An end earlier than the start makes an overnight window ("22:00:00"–"02:00:00" dials from 10pm until 2am the next day) |
start_at, end_at | timestamp | null | Optional overall schedule bounds. end_at must be after start_at |
max_concurrent_calls | integer | 1–10, default 3. Counts calls still being dialed or in progress; a call that has ended while its result is pending does not count |
max_attempts | integer | 1–10, default 2 — total tries per contact. The upper bound is per organization and staff can raise it |
retry_backoff_minutes | integer | Delay before a retryable contact is attempted again. At least 30, default 60. Staff can lower the minimum per organization |
retry_strategy | string | spread: each retry goes to a later day and a different part of the contact's day, at least retry_backoff_minutes after the last call. fixed: exactly retry_backoff_minutes later. Default spread for new campaigns; campaigns created before this setting are fixed. See spread retries |
retry_on | array of string | Call outcomes that trigger a retry. Default ["no_answer", "voicemail", "failed"] |
double_dial | boolean | After a call rings out unanswered, call once more from the same number 30–60 seconds later. The redial is not an attempt. Default false |
total_count, completed_count, failed_count, in_progress_count | integer | Progress counters (read-only). in_progress_count counts calls being dialed or in progress now; a contact whose call has ended while its result is pending (result_pending on the contact) is not in it |
skipped_count | integer | Contacts the number-type filter skipped without calling (read-only). They are also in failed_count |
line_type_filter | string | "" (default: off), skip_mobile or skip_landline. Looks up each contact's number before its first call and skips that type. Each lookup is charged to your balance. See number-type filter |
pre_call_sms_enabled | boolean | Text each contact before their first call. Default false. See Text before calling |
pre_call_sms_from_number | string | E.164 number the text is sent from: an SMS-capable number on your own connected Twilio or Telnyx account. Required when pre_call_sms_enabled is true |
pre_call_sms_template | string | The text, up to 1600 characters, with {{variable}} placeholders. Blank means the default text, which is what the field then returns |
pre_call_sms_lead_minutes | integer | Minutes between the text and the call, 1–60, default 2. With texting on, the daily window must be at least this plus 12 minutes, or the save returns 400. A texted contact holds its call slot until called, so long leads slow the campaign |
warnings | array of object | Saved settings worth a second look, each {code, field, detail} (read-only). outside_calling_hours for a window that starts before 08:00 (field is daily_window_start) or ends after 21:00 or crosses midnight (daily_window_end), one entry per edge. window_crosses_midnight for an overnight window and empty_window for equal start and end, which does not dial. pre_call_sms_sender_not_ready (field is pre_call_sms_from_number) when the text number cannot send yet, such as a US number waiting on A2P 10DLC approval; detail says what is missing, and contacts are called without a text until it is fixed. Empty when there is nothing to flag |
Create a campaign
curl -X POST https://api.thunderphone.com/v1/campaigns \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "May win-back",
"agent": 12,
"from_numbers": ["+15551234567", "+12125550143"],
"max_calls_per_number_per_day": 75,
"timezone": "America/Los_Angeles",
"daily_window_start": "09:00",
"daily_window_end": "17:00",
"max_concurrent_calls": 3,
"max_attempts": 2,
"retry_on": ["no_answer", "voicemail"]
}'Required: name, agent, and from_number or from_numbers.
daily_window_start and daily_window_end default to 09:00–17:00. Returns 201 Created with the campaign in
status="draft". Validation errors (400) cover unknown agents,
pool numbers not registered to your org (the error names the number), a
from_number that differs from from_numbers[0], a
max_calls_per_number_per_day outside 1–500, ThunderPhone numbers when outbound calling
has not been approved for your organization, invalid IANA timezones,
end_at <= start_at, and retry settings outside your organization's
bounds (below). Daily windows are never refused; unusual ones come back
with warnings.
Calling hours and retry limits
- Timezone default. Omit
timezoneand the campaign uses the first pool number's zone: its area code for US and Canadian numbers (+1 415…isAmerica/Los_Angeles), its country elsewhere. Numbers that span several zones, such as toll-free numbers, fall back toUTC. The same value is on the phone number object astimezone. Atimezoneyou send always wins. - Calling-hours warning. Calls outside 8am–9pm local time may break
calling-hours rules such as the TCPA's. A window that starts before
08:00or ends after21:00is saved, and the response lists anoutside_calling_hoursentry inwarnings. Withwindow_timezone_modecampaign, the window runs in the campaign's timezone, not each contact's: a 9am start in New York reaches a Los Angeles contact at 6am. Usecontact(the default for new campaigns) to avoid that. - Each contact's local time. With
window_timezone_modecontact, a 09:00–17:00 window means 9am–5pm where each contact is, by the contact's area code: a New York contact is called from 9am Eastern and a Los Angeles contact from 9am Pacific. Contacts with a toll-free, non-US/Canadian or unrecognized number use the campaign'stimezone. An area code that spans two zones (such as 208 in Idaho) is called only while the window is open in both. A contact whose window is closed simply waits; it uses no attempt. - State calling hours. With
calling_hours_modestate_defaults(the default for new campaigns), a US contact is also held to its state's telemarketing hours: a Florida contact is called 8am–8pm and a Texas contact not before noon on Sundays, even when the campaign's window is wider. The state comes from the area code and the contact'sstatevariable; both must allow the call when they differ. Contacts outside those hours wait and use no attempt. The full table is in Outbound calling compliance. - Overnight windows. A
daily_window_endearlier thandaily_window_startcrosses midnight:22:00–02:00dials from 10pm until 2am the next day. It is saved withwindow_crosses_midnightandoutside_calling_hourswarnings, for example when your contacts sit in a timezone hours away from the campaign's. Equal start and end (09:00–09:00) is saved with anempty_windowwarning and never dials. - Retry bounds.
max_attemptsis at most 10 andretry_backoff_minutesat least 30. Values outside them return400on that field. Staff can raise both for your organization; contact support.
{
"max_attempts": ["Campaigns can make at most 10 attempts per contact. Contact support to raise this limit."]
}Spread retries and double dial
- Spread retries. With
retry_strategyspread, the calling window is split into morning, midday and late afternoon. Each retry goes to the next of those parts after the one the last call was in, on a later day, a few minutes either side of the middle of that part, and never sooner thanretry_backoff_minutesafter the last call. For a 09:00–17:00 window, a 10am call that goes unanswered is retried around 1pm the next day, then around 3:40pm the day after. People who are busy every morning get reached in the afternoon, and calls do not land at the same minute every day. When the spread slot would fall at or after the campaign'send_at, the retry uses the plain backoff instead. - Double dial. With
double_dialon, a call that rings out with no answer is redialed once, 30–60 seconds later, from the same number. On iPhone, a second call from the same number within three minutes rings through Do Not Disturb when its "Allow Repeated Calls" setting is on. The redial is part of the same attempt: it uses no attempt and does not wait for the backoff. It never follows a busy signal, a declined call or voicemail, and there is at most one per attempt. Your organization's spacing between calls to the same person and the number's daily limit still apply; when either would refuse it, there is no redial. A redial that could not start within about three minutes of the first call (a long ring plus a long same-number spacing) is skipped.
Number pools and pacing
Carrier analytics flag numbers that place many calls a day or call in bursts, and people answer local area codes more often. Spreading calls across several local numbers keeps each number under those thresholds and shows each contact a local area code.
- Which number calls a contact. At dial time the runner picks, in
order: the number the contact was last called from (so retries come
from the same caller ID) while it is still in the pool and under its
limit; else a pool number with the contact's area code (US and
Canada); else one in the contact's timezone; else the pool number with
the fewest outbound calls in the last 24 hours. The contact's
from_numberrecords the choice. - Per-number limit.
max_calls_per_number_per_daycounts every outbound call from that number in your organization over a rolling 24 hours, including calls from other campaigns and the API, because a number's reputation is shared by everything it dials. - Warm-up. A ThunderPhone number with less than a week of outbound calls gets a lower limit: 20 calls on its first day, rising evenly to the full limit on day 7. A limit below 20 applies as is. Numbers on your own carrier skip the warm-up.
- Waiting, not failing. When no pool number has room, due contacts
stay
pendingwithout using an attempt, the campaign staysrunning, andblocked_reasonsays why. Dialing resumes on its own as calls age out of the 24-hour window. To go faster, pause the campaign and add numbers or raise the limit. - Numbers that stop working.
startrefuses a pool with a number that cannot place outbound calls. If a number stops working while the campaign runs, the runner dials from the rest of the pool, and pauses the campaign only when no pool number is left. - Spam-flagged numbers. With spam-label monitoring
on, a pool number rated medium or high risk places no campaign calls,
retries included, until the flag clears; the rest of the pool keeps
dialing. When every number with room is flagged, contacts wait without
using an attempt and
blocked_detailsays why (blocked_reasonstaysnull). - Your organization's other limits still apply: the daily and hourly outbound limits, concurrent calls, and spacing between calls to the same person.
Text before calling
With pre_call_sms_enabled, the campaign texts each contact a few
minutes before their first call, so the person knows who is calling
and from which number. Turn it on at create or with PATCH:
curl -X PATCH https://api.thunderphone.com/v1/campaigns/3f6b2c9e-… \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"pre_call_sms_enabled": true,
"pre_call_sms_from_number": "+15557654321",
"pre_call_sms_template": "Hi {{first_name}}, {{agent_name}} from {{org_name}} will call you shortly from {{call_from_number}}. Reply STOP to opt out of texts.",
"pre_call_sms_lead_minutes": 2
}'-
Sender.
pre_call_sms_from_numberis checked with the same rules asPOST /v1/sms: it must be an SMS-capable number on your own connected Twilio or Telnyx account. ThunderPhone numbers cannot text, and choosing one returns400. A US number whose only gap is its A2P 10DLC registration saves with apre_call_sms_sender_not_readywarning; its contacts are called without a text until the carrier approves it. -
Template. Placeholders are the contact's variables plus
{{org_name}},{{agent_name}}and{{call_from_number}}(the pool number the runner picks for the contact, formatted like+1 415-555-0100; the contact'sfrom_numberis set to it, so the call comes from that number while it stays in the pool and under its limit). Those three win over a contact variable of the same name.{{first_name}}falls back to the first word of the contact'sname.{{first_name|there}}sets a fallback; a missing variable renders as nothing and the space it leaves is tidied (Hi {{first_name}}, this isbecomesHi, this is). The default text:Hi {{first_name}}, this is {{org_name}}. We'll call you in a few minutes from {{call_from_number}}. Reply STOP to opt out of texts. -
Timing. Only a contact's first attempt gets a text, once; retries never do. After a text the carrier accepted, or one it may have sent (
unknown), the call waitspre_call_sms_lead_minutesand goes out on the next runner pass, which runs every 5 minutes. With the default 2 minutes, the call comes about 5 minutes after the text. A texted contact is called ahead of due retries, and holds its call slot and room on its number until then, so a long lead slows the campaign; keep it to a few minutes. -
Calling window. No text goes out unless the window is open now and still open 5 minutes after the lead time, so the call lands inside it even when a pass runs late. Otherwise the contact waits, untexted and undialed, for the next window. In each contact's local time (
window_timezone_modecontact) this is the contact's own window. A daily window must be at least the lead time plus 12 minutes; a save that breaks this returns400. If a campaign's window orend_atstill leaves no room, its contacts are called without a text, recorded asskippedwithwindow_too_shortorcampaign_ending. -
Pacing. Texts go out only for call slots the campaign can expect on the next pass, counting
max_concurrent_calls, the organization's outbound calls in progress and the calls the number pool has room for undermax_calls_per_number_per_day, so a large campaign, a busy organization or a pool at its limits does not text people it cannot call soon. When the organization SMS rate limit is reached, the remaining texts wait for a later pass, and those contacts are not dialed until they are texted. When the carrier cannot be reached to check the sending number, texts wait up to 3 passes; then the contacts are called without a text, recorded with the carrier's error code. -
Failures never block the call. A text that fails or is skipped is recorded on the contact, which is dialed right away. Numbers that do not look like they can receive texts, such as landlines, are skipped with
not_mobile. Pre-call texts are never retried: a late text about a call that already happened would mislead.
Each text is a normal SMS message: it appears in
GET /v1/sms with source: "pre_call" and emits the usual sms.sent and
sms.failed webhooks. It is sent at most
once per contact. Its outcome is on the contact
object as pre_call_sms.
Retrieve / update / delete
GET /v1/campaigns/{id} returns the campaign plus a contacts
array (first 500 contact objects; filter with
?contact_status=pending|scheduled|calling|completed|failed|exhausted).
PATCH accepts any subset of the writable fields, but only while
status is draft, scheduled, or paused — otherwise
409 Conflict. from_numbers replaces the whole pool; from_number
alone replaces it with a pool of that one number.
Campaigns saved before the retry bounds keep running exactly as
configured. Sending a max_attempts or retry_backoff_minutes outside
the bounds is refused only when it changes the saved value, so other
edits still succeed.
DELETE returns 204 No Content and removes the campaign and its
contacts (already-made call logs are kept).
Add contacts
Only allowed while the campaign is a draft (409 otherwise).
Two formats:
curl -X POST https://api.thunderphone.com/v1/campaigns/3f6b2c9e-…/contacts \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-F 'file=@contacts.csv'curl -X POST https://api.thunderphone.com/v1/campaigns/3f6b2c9e-…/contacts \
-H "Authorization: Bearer sk_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contacts": [
{ "phone_number": "+14155552671", "first_name": "Jamie", "account_id": "A-1042" }
]
}'- CSV: UTF-8, must have a
phoneorphone_numbercolumn. Every other column becomes a per-contact variable. - JSON: a top-level list, or
{"contacts": [...]}— each object needsphone_number(orphone); all other keys become variables. - Max 5,000 rows per request. Numbers are normalized to E.164 (8–15 digits); invalid rows are rejected individually, not the whole batch.
- Rows with a number ThunderPhone does not call are rejected the same way,
under the outbound call rules:
emergency numbers, short codes, sanctioned countries, and, for a
ThunderPhone caller ID in the pool, premium-rate numbers and the countries
and number types ThunderPhone numbers can't call. The row's
reasonfield names the rule. A contact that reaches dial time with such a number fails withlast_outcomedestination_not_allowedand is not retried.
{
"accepted": 148,
"rejected": 2,
"errors": [
{ "row": 17, "value": "555-0100", "error": "\"555-0100\" isn't a valid phone number. Check the digits and the country code.", "reason": "invalid_number" },
{ "row": 42, "value": "", "error": "Expected an object." }
],
"errors_truncated": false
}errors carries at most 100 entries; errors_truncated is true when more
rows were rejected than listed. value is the phone value of the rejected row
(empty when the row was not an object).
Contact object
{id, phone_number, from_number, variables, status, result_pending, attempts, next_attempt_at, last_outcome, call_id, dial_sip_status, dial_sip_reason, dial_sip_kind, pre_call_sms, line_type, line_type_checked_at, created_at, updated_at}
— status is pending, scheduled, calling, completed,
failed, or exhausted (retries used up). result_pending is true while
status is calling but the call has already ended: the outcome waits for
the call's grade, usually about 15 minutes after the call and at most about
2 hours, so the grade can decide a retry. Such a contact no longer counts
against max_concurrent_calls or in_progress_count, and it is not called
again before its outcome is set. from_number is the pool
number the contact was last dialed from ("" before its first call); call_id links the most
recent call. dial_sip_status, dial_sip_reason
and dial_sip_kind are that call's outbound_dial_sip_status,
outbound_dial_sip_reason and outbound_dial_sip_kind (e.g. 403,
Account is disabled D17 and refused when your carrier refused the
dial); all are null when there is no call or no carrier answered it.
line_type is the number's type from the number-type filter
(mobile, fixed, voip, toll_free or unknown; "" when it was not
looked up) and line_type_checked_at when it was looked up. More types may
be added, so treat an unknown value as unknown.
last_outcome is how the latest attempt ended: success, no_answer,
voicemail, failed or destination_not_allowed. A contact the number-type
filter ended without a call has status failed, attempts 0 and
last_outcome skipped_mobile, skipped_landline,
skipped_unknown_line_type or line_type_check_failed. More outcomes may be
added.
pre_call_sms is null until the runner has handled the contact's
pre-call text, then:
{
"status": "sent",
"error_code": null,
"error_message": null,
"sms_id": "313a3117-827b-46e9-a01a-ac1493838724",
"delivery_status": "delivered",
"at": "2026-10-23T16:02:00.412Z"
}| Field | Description |
|---|---|
status | sent (the carrier accepted it), failed, unknown (the carrier may have sent it) or skipped (not sent) |
error_code, error_message | Why it failed or was skipped. Common codes: not_mobile, empty_message (the template rendered to nothing), no_sender, messaging_not_registered, not_sms_capable, recipient_opted_out, plus the SMS error codes |
sms_id | The SMS message, or null when none was sent |
delivery_status | What the carrier reported later (Twilio only), e.g. delivered or undelivered |
at | When the outcome was recorded |
Number-type filter
Calls with an AI voice to a mobile number need the person's prior express
consent under the TCPA. If your list may hold mobiles you have no consent
for, set line_type_filter to skip_mobile: each contact's number is looked
up just before its first call, and mobiles are not called.
line_type_filter | Calls | Skips |
|---|---|---|
"" (default) | everyone, nothing is looked up | nothing |
skip_mobile | landlines, VoIP and toll-free numbers | mobiles (skipped_mobile) and numbers the lookup can't classify (skipped_unknown_line_type) |
skip_landline | mobiles, VoIP, toll-free and unclassified numbers | landlines (skipped_landline) |
- Only a contact's first call is checked, right before it is placed, so contacts that are never dialed are never looked up. Retries keep the first answer.
- Each lookup is charged to your balance as a Number type lookup
transaction (
kindadjustment,charge_typeline_type_lookup): the carrier's list price with your account's markup, under a cent each (see pricing). A campaign's lookups are charged as they add up to whole cents. A number your organization looked up in the last 90 days, in any campaign, is reused for free. A number the lookup could not classify is looked up again, and charged again, the next time it comes up. - A skipped contact ends without a call:
statusfailed,attempts0,last_outcomeas above, and it counts inskipped_count(andfailed_count). - A lookup that fails is not charged and skips nothing: the contact waits
and is tried again on the next pass. After three failed passes it ends
failedwithlast_outcomeline_type_check_failed, without a call. - The filter does not replace consent for the numbers it does call.
Campaign actions
POST /v1/campaigns/{id}/{action} where action is:
| Action | Body | Effect |
|---|---|---|
start | {"consent_to_charge": true} (required). Optional "calling_hours_accepted": true records that an admin accepted the state calling hours for the organization | draft/paused/scheduled/cancelled → running (or scheduled when start_at is in the future). Requires at least one contact, every pool number able to place outbound calls, and the org's outbound TCPA confirmation |
pause | — | running/scheduled → paused |
cancel | — | Any non-terminal status → cancelled |
Returns 200 OK with the updated campaign. Invalid transitions return
409; unknown actions return 404.
Stats
curl https://api.thunderphone.com/v1/campaigns/3f6b2c9e-…/stats \
-H "Authorization: Bearer sk_live_YOUR_API_KEY"{
"total": 150,
"completed": 41,
"failed": 3,
"in_progress": 2,
"result_pending": 0,
"skipped": 0,
"by_status": { "pending": 96, "scheduled": 8, "calling": 2, "completed": 41, "failed": 3 },
"recent_calls": [
{
"contact_id": 9911,
"phone_number": "+14155552671",
"from_number": "+15551234567",
"call_id": 987654321,
"status": "completed",
"outcome": "completed",
"started_at": "2026-04-20T18:24:10.113Z"
}
]
}in_progress counts calls being dialed or in progress now. result_pending
counts contacts with status calling whose call has ended and whose outcome
waits for the call's grade; they are also in by_status.calling.
recent_calls holds the 20 most recently updated contacts that have a
call attached; from_number is the number that call was placed from.