What Are Campaigns?
A campaign is either outbound (we dial leads from a list) or inbound (a phone number routes its calls here). Setdirection at creation; it defaults to outbound and can only change while the campaign is draft.
Outbound fits appointment reminders, order follow-ups, renewals and lead qualification for contacts who consented.
Inbound campaigns answer on an attached number only while running. In any other status the number declines callers. See Inbound Calls.
Queue Management
Large lead lists, with running campaigns sharing your account’s per-minute limit.
Dispatch Hours
Dial only inside the hours and weekdays you set, in the campaign’s time zone.
Retries
Call back after a busy line, no answer, a failed dial or voicemail, on your schedule.
Stats
Answered, completed, converted and failed counts on request.
How Campaigns Work
1
1. Create
Use the dashboard or
POST /v1/campaigns to set instructions, voice and schedule. A new campaign is draft.2
2. Add Leads
Upload a CSV in the dashboard or use the leads endpoints. Each lead can carry fields of its own, like
order_number, which fill in the opening line and which the agent sees on the call. See Lead Fields. Make sure you have consent where the law requires it. A list with US numbers asks for one more tick: see US numbers on a lead list.3
3. Start
POST /v1/campaigns/{id}/start. Outbound needs at least one lead (else 400) and available credit covering one call’s full max_duration, 10 minutes if the campaign sets none (else 402). With a future schedule_time the campaign goes scheduled and starts itself at that time. Inbound start just sets running and creates no run.4
4. Dialling
Calls go out within the account’s per-minute limit, the campaign’s
max_parallel_calls, your concurrent-call slots, the dispatch hours and the retry schedule. A lead whose number your account can’t call ends failed with the reason in error_message, isn’t retried and doesn’t count toward an automatic pause.5
5. Monitoring
GET /v1/campaigns/{id}/stats returns answered, completed, converted and failed counts, total talk time and the current run.6
6. Stopping
A campaign never completes by itself. Once its leads run out it stays
running and dials any lead you add later. POST /v1/campaigns/{id}/stop ends it (completed) and cancels its queued calls.US numbers on a lead list
When leads you add include US numbers (+1), TopCalls asks you to confirm one thing first: each of those numbers has the person’s prior express written consent to be called, or was checked against the National Do Not Call Registry in the last 31 days, and you keep proof of it.
- Dashboard: a CSV import or a single lead with a
+1number shows a checkbox with that statement. The import waits until you tick it. Lists without US numbers don’t show it. - API:
POST /v1/leads,PATCH /v1/leads/{id}andPOST /v1/leads/bulkneed"us_dnc_declaration": truewhen the request holds a+1number. Without it they answer400with the codeus_dnc_declaration_required. - MCP:
import_leadsrefuses a list with+1numbers until your AI app sends the same confirmation. TopCalls tells the app to ask you for it.
Toll-free numbers in a CSV import
TopCalls can’t call toll-free, pager, personal or voicemail numbers. So a CSV import in the dashboard skips a row with one of them. The import page lists each skipped row with its row number from your file and the reasonnumber_type, and the other rows are imported as usual.
If you want those numbers in your list anyway, an account owner can turn on Keep toll-free numbers when importing leads in Settings, under Company. It’s off by default. With it on, the numbers are imported, but they still can’t be called: a campaign marks that lead failed with the reason number_type, and doesn’t retry it.
This applies to the dashboard CSV import only. POST /v1/leads/bulk, import_leads over MCP and the other ways of adding leads don’t skip these rows. They accept the number, and the call to it is refused when it comes due (Where TopCalls Calls).
Campaign Statuses
Start works from any status unless a run is already active (
409). Resume needs paused and the same credit as start. Stop works from any status.
Caller ID
An outbound campaign calls fromconfig.from_number, or from a random number in config.phone_number_ids when from_number isn’t set. from_number must be an active or verified number on your account: otherwise create or update fails with 422 (from_number_not_owned) and nothing is saved. Each lead gets a number that can reach it: a +1 lead (the US, Canada and the rest of North America) is called only from a number rented from TopCalls or verified for US calling, or a number on your own carrier (Phone Numbers). When the campaign has no such number, its +1 leads are skipped, each keeping its attempts, and called once one of its numbers can call +1; every other lead is called as usual. Start and resume then answer as usual plus warnings: [{ "code": "us_leads_skipped", "usLeadCount": 3 }]. If every lead the campaign can still call is +1, nothing would be called, so start and resume answer 422 (us_caller_id_required, with usLeadCount), and so does a test call to a +1 number.
It’s checked again on every test call and each time the campaign queues calls. If the number stops qualifying, test calls get the same 422 and a running campaign pauses with pause_reason: phone_number_deleted.
API Endpoints
Rate Limiting & Fair Share
max_calls_per_minute (default 20) caps how many calls POST /v1/calls places per minute. It’s also the per-minute budget running campaigns share.
Each campaign asks for up to its max_parallel_calls per minute (default 10). When the total asked is over the account limit, every campaign is scaled down in proportion. A campaign asking for less never holds capacity it won’t use.
Example: limit 20, campaign A asks 10, campaign B asks 30. Total 40 is twice the limit, so A gets 5 and B gets 15.
Timezone & Business Hours
Calls go out only inside the dispatch window, in the campaign’stimezone (UTC when unset). dispatch_hours_start and dispatch_hours_end set the default window, dispatch_weekdays the days (1 is Monday, 7 is Sunday). dispatch_hours_overrides gives one day its own windows; an empty list makes it a day off.
Each account has a Block list: TopCalls never calls a number on it, and adds the number of anyone who asks on a call not to be called again. You can add numbers in the dashboard, by CSV, with
POST /v1/block-list or over MCP. You’re still responsible for following local calling laws (TCPA/TSR/DNC, GDPR), including consent, opt-outs and registry checks.Retry Logic
A lead is called again only after a no-contact outcome: busy, no answer, a failed dial, or voicemail. Once a call to that number reaches a person, it isn’t retried in that run. Retries stop atmax_attempts_per_lead (1 to 10).
The retry schedule has one slot per retry, used in order:
- A delay: “wait 30 minutes” after the previous attempt. Skipped if it lands outside the schedule’s retry hours
- A fixed time: “6:00 PM, two days after the first call”, in the campaign’s time zone. Skipped if it’s already past
Placeholders
Write{{name}} or {name} in the first_sentence and each one is replaced with that lead’s value when the call starts. Any field on the lead works: name, email, notes, status, or a custom field you added.
{{name}} is the one placeholder for instructions. For anything else, write instructions that refer to the lead. The agent already sees the lead’s name, notes and custom fields in a separate lead data section, so a task can say “mention the product they ordered” when the lead has that field.
On a campaign call the name is cut to 64 characters, in the opening line too. The name keeps letters, digits, spaces and - ' . , &. Any other character, such as a bracket, brace or quote mark, becomes a space. In instructions the name is put in double quotes, so the agent reads it as a name and never as an instruction. A direct call through POST /v1/calls fills nothing in its task or instructions.
Values are cleaned before they are spoken: line breaks become spaces, and a value longer than 256 characters is cut off. A field that is empty for the lead is removed together with the space before it, so Hi {{name}}, how are you? becomes Hi, how are you?. On a campaign call this is what happens to {{name}} for a lead without a name, in the opening line and in the instructions alike. A placeholder with no matching field stays in the text exactly as you typed it, braces included, and the agent speaks it that way. Check the names against your lead fields.
A greeting with placeholders is reviewed as it will be spoken, once the lead’s values are in. If the filled-in text is fraudulent, the call is refused before it is placed. A greeting without placeholders needs no extra check.
For a lead with the fields name and appointment_time:
company_name, a greeting that says {company_name} is spoken with those characters unchanged. Add the field to the lead or take the placeholder out.
Bot Protection
Legacy only, and on by default. When the other side behaves like an automated system (scripted lines, the same non-answer to different questions), the call ends so it doesn’t burn credit. Turn it off in the campaign editor or withbot_protection_enabled: false. Live has no bot protection and rejects bot_protection_enabled: true.
Voicemail Detection
Calls hang up when they reach an answering machine or voicemail, in any language, so a mailbox greeting doesn’t run up the bill. A voicemail outcome counts as no contact, so the lead can be retried.Campaign Stats
GET /v1/campaigns/{id}/stats counts the campaign’s calls when you ask. Test calls aren’t included.
Best Practices
- Get consent wherever the law requires it. Leads who ask on a call not to be called again go on your Block list on their own. Add the requests that reach you any other way.
- Start with 10 to 20 leads and read the transcripts before you scale.
- Give every campaign dispatch hours and a time zone.
- Keep
max_attempts_per_leadlow enough that nobody gets called all week. - Watch the connect rate, then move hours or retries if it drops.
Next Steps
Making Calls Guide
Place single calls through the API.
Webhooks Guide
Get a webhook for every finished call.