AI calling campaigns
A campaign is who to call, what to ask, and when. Read AI calling first for costs, calling hours and how to get results.
Its life. A new campaign is a draft. start makes it pending, then running once the first call goes out. pause stops it and resume carries on. When everyone has been called it is completed, and runs again if someone new is added. allowed_actions always says what can be done now.
Create
Makes a draft; nobody is called. Answers 201, or 200 with the existing campaign when external_id is one you have used.
| Field | Type | Required | Description |
|---|---|---|---|
| type | "job" | "list" | Yes | job calls a job's candidates; list calls people you send |
| name | string | Yes | Up to 255 characters |
| phone_number_id | string (uuid) | null | To start | From GET /ai-calling/numbers. Can be set later, but a campaign cannot start without one |
| greeting_message | string | null | No | What the agent opens with, up to 1,000 characters. Can use {{candidateName}}, {{recruiterName}}, {{myCompany}}, {{jobTitle}} and {{clientName}}. Left out: the default greeting |
| schedule.days | integer[] | No | Days to call on: 0 Sunday to 6 Saturday (default 1–6) |
| schedule.start_time | string | No | 24-hour time in India, e.g. 09:00 (default 09:00) |
| schedule.end_time | string | No | Default 20:00. The same as start_time means all day; earlier than start_time means overnight |
| schedule.max_retries | integer | No | Times to try again after no answer, 0–10 (default 2) |
| schedule.retry_after_hours | integer | No | Hours between tries, 1–168 (default 4) |
| standard_questions | (string | object)[] | No | Ids from GET /ai-calling/questions, or { id, question?, expected_answer? } to reword one (300 characters) or say what a good answer is (500). Default: all six for a job campaign, none for a list campaign |
| job_change_check | object | No | { enabled, question?, referral_question? }: ask first whether they are open to a change; on a no, ask for a referral instead of the questions |
| recruiter_email | string | No | Who the agent says it is calling for, by their email in your organization (not a viewer). Default: whoever created the API key, else the owner |
| external_id | string | No | Your own id, up to 255 characters, unique in your organization. Creating again with the same id answers 200 with the existing campaign, so a retry is safe. Send one |
| Field | Type | Required | Description |
|---|---|---|---|
| job_id | string (uuid) | Yes | An active job. Cannot be changed later |
| pipeline_statuses | string[] | Yes | Call candidates in these pipeline statuses, now and as they reach them. [] means every status. Required, so who is called is never a guess |
| pre_interview_questions | (string | object)[] | No | The job's own question ids, or { id, expected_answer? }. Default: all of them |
| Field | Type | Required | Description |
|---|---|---|---|
| call_topic.title | string | Yes | Said as the role, e.g. Sales Executive in Pune (120 characters) |
| call_topic.company | string | null | No | The hiring company (120 characters) |
| call_topic.details | string | null | No | What the agent may tell a candidate who asks: pay, location, timings (4,000 characters). It says nothing that is not here |
| custom_questions | object[] | No | { question, expected_answer?, id? }: up to 25, asked in order. At least one question of any kind is needed |
| contacts | object[] | No | { name, phone }: up to 500 here, more through recipients. Leave it out to add people as they arrive |
{
"type": "job",
"name": "Data Analyst screening",
"external_id": "req-4821-screening",
"job_id": "8ad474f3-fb72-4074-a4e4-fb4148343e9e",
"pipeline_statuses": ["Applied"],
"phone_number_id": "642251b5-2e84-424b-921c-1ec72ce769bd",
"schedule": { "days": [1, 2, 3, 4, 5], "start_time": "10:00", "end_time": "18:30" },
"standard_questions": [
"total_experience_years",
{ "id": "notice_period_days", "question": "How soon could you join, in days?", "expected_answer": "30 days or less" }
],
"pre_interview_questions": [{ "id": "piq_sql", "expected_answer": "8 or more" }],
"job_change_check": { "enabled": true },
"recruiter_email": "[email protected]"
}{
"type": "list",
"name": "Website leads",
"external_id": "website-leads-2026-12",
"phone_number_id": "642251b5-2e84-424b-921c-1ec72ce769bd",
"call_topic": {
"title": "Sales Executive in Pune",
"company": "Acme",
"details": "4 to 6 LPA plus incentives. Field sales, two-wheeler needed."
},
"custom_questions": [
{ "question": "Are you open to field sales?", "expected_answer": "Yes" },
{ "question": "Do you have a two-wheeler?" }
],
"contacts": [{ "name": "Asha Rao", "phone": "9876543210" }]
}The campaign
| Field | Type | Required | Description |
|---|---|---|---|
| id | string (uuid) | — | Campaign id |
| type | "job" | "list" | — | What it calls |
| name | string | — | Name |
| status | "draft" | "pending" | "running" | "paused" | "completed" | "failed" | "cancelled" | — | pending: started, first call not placed yet. completed: everyone has been called; it runs again if someone new is added |
| external_id | string | null | — | Your id |
| job_id, job_title | string | null | — | Job campaigns |
| client_id, client_name | string | null | — | The job's client |
| call_topic | object | null | — | List campaigns: { title, company, details } |
| phone_number | object | null | — | { id, number, name, status, status_reason }. A status other than active means no calls go out |
| recruiter_name | string | null | — | Who the agent introduces itself as |
| greeting_message | string | null | — | null: the default greeting |
| schedule | object | — | { days, start_time, end_time, timezone, max_retries, retry_after_hours } |
| pipeline_statuses | string[] | null | — | Job campaigns; [] is every status |
| questions | object[] | — | { id, kind, question, type, required, options, expected_answer }, in the order asked. kind: standard, pre_interview, custom, job_change or referral |
| recipients | object | — | How many people, by status: { total, pending, queued, calling, completed, partial, no_answer, failed, skipped } |
| calls | object | — | { total, talk_seconds, credits_used }. Test calls are not counted |
| allowed_actions | string[] | — | What can be done now: update, start, pause, resume, cancel, add_recipients, test_call, delete |
| started_at, completed_at | string (ISO 8601 date-time) | null | — | When |
| created_at, updated_at | string (ISO 8601 date-time) | — | When |
| Field | Type | Required | Description |
|---|---|---|---|
| created | boolean | — | false (with 200) when external_id already had a campaign |
| skipped_contacts | object[] | — | People left out: { index, name, phone, reason }. reason: no_name, not_an_indian_mobile or duplicate |
{
"data": {
"id": "44f14888-1b21-4bd2-baa0-d53447c22b7c",
"type": "job",
"name": "Data Analyst screening",
"status": "running",
"external_id": "req-4821-screening",
"job_id": "8ad474f3-fb72-4074-a4e4-fb4148343e9e",
"job_title": "Data Analyst",
"client_id": null,
"client_name": null,
"call_topic": null,
"phone_number": {
"id": "642251b5-2e84-424b-921c-1ec72ce769bd",
"number": "+919876500000",
"name": "Pune hiring line",
"status": "active",
"status_reason": null
},
"recruiter_name": "Priya Sharma",
"greeting_message": null,
"schedule": {
"days": [1, 2, 3, 4, 5],
"start_time": "10:00",
"end_time": "18:30",
"timezone": "Asia/Kolkata",
"max_retries": 2,
"retry_after_hours": 4
},
"pipeline_statuses": ["Applied"],
"questions": [
{
"id": "notice_period_days",
"kind": "standard",
"question": "How soon could you join, in days?",
"type": "number",
"required": true,
"options": null,
"expected_answer": "30 days or less"
}
],
"recipients": {
"total": 40, "pending": 12, "queued": 1, "calling": 1, "completed": 18,
"partial": 4, "no_answer": 3, "failed": 1, "skipped": 0
},
"calls": { "total": 31, "talk_seconds": 4620, "credits_used": 81.6 },
"allowed_actions": ["pause", "test_call"],
"started_at": "2026-11-30T04:30:02.000Z",
"completed_at": null,
"created_at": "2026-11-30T04:12:40.000Z",
"updated_at": "2026-11-30T09:01:11.000Z"
}
}Change
A draft or paused campaign only. Send just what changes: everything else stays as it is. Changes reach calls placed from then on.
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | No | Both types |
| phone_number_id | string (uuid) | null | No | Both types. null takes the number off |
| greeting_message | string | null | No | Both types. null goes back to the default |
| schedule | object | No | Both types. Only the parts sent change |
| standard_questions | (string | object)[] | No | Both types. Replaces the standard questions, with their wording and expected answers |
| job_change_check | object | No | Both types |
| pipeline_statuses | string[] | No | Job campaigns. People still waiting for a first call join or leave the queue; anyone already called stays |
| pre_interview_questions | (string | object)[] | No | Job campaigns. Replaces them |
| call_topic | object | No | List campaigns. Replaces it |
| custom_questions | object[] | No | List campaigns. Replaces them; send an id back to keep a question the same one |
Start and resume
Both place the first call at once if they can, and answer with the campaign and dialing: what the dialer is doing now. A state that waits is not an error; calling carries on by itself.
| Field | Type | Required | Description |
|---|---|---|---|
| dialing.state | string | — | What the dialer is doing now (below) |
| dialing.calls_started | integer | — | Calls handed over by this request |
| dialing.message | string | null | — | Why, in words |
| Field | Type | Required | Description |
|---|---|---|---|
| calling | state | — | A call is going out |
| queued | state | — | In the queue; the dialer takes it next |
| outside_calling_hours | state | — | Calls go out when the schedule next opens |
| waiting_for_line | state | — | Every calling line is in use. Campaigns take turns |
| waiting_for_credits | state | — | Not enough credits. Calling carries on by itself once there are |
| waiting_for_people | state | — | Nobody to call yet |
| finished | state | — | Everyone has been called |
| blocked | state | — | Something has to be put right: see message (a released number, say) |
{
"data": {
"id": "44f14888-1b21-4bd2-baa0-d53447c22b7c",
"status": "pending",
"…": "the rest of the campaign",
"dialing": {
"state": "outside_calling_hours",
"calls_started": 0,
"message": "Outside calling window (Mon, Tue, Wed, Thu, Fri 10:00 AM – 6:30 PM IST)"
}
}
}List
| Field | Type | Required | Description |
|---|---|---|---|
| status | string | No | A campaign status |
| type | "job" | "list" | No | Campaign type |
| job_id | string (uuid) | No | One job's campaigns |
| external_id | string | No | The campaign with this id of yours |
| search | string | No | In the name, job title or topic |
| limit | integer | No | Page size (1–100, default 50) |
| offset | integer | No | Skip N records (default 0) |
| Field | Type | Required | Description |
|---|---|---|---|
| meta.total | integer | — | Total matching records |
| meta.limit | integer | — | Page size used |
| meta.offset | integer | — | Offset used |
/api/v1/ai-calling/campaignsCreate a draft campaign.
/api/v1/ai-calling/campaignsList campaigns, newest first.
/api/v1/ai-calling/campaigns/{id}One campaign, with its counts and credits.
/api/v1/ai-calling/campaigns/{id}Change a draft or paused campaign. Only what is sent changes.
/api/v1/ai-calling/campaigns/{id}Delete a campaign and its recipients (204). Pause a pending or running one first. Its calls stay, with campaign_id null.
/api/v1/ai-calling/campaigns/{id}/startStart a draft. It needs a number. No body.
/api/v1/ai-calling/campaigns/{id}/pauseStop new calls, and the ones that have not rung yet. A call already connected finishes. No body.
/api/v1/ai-calling/campaigns/{id}/resumeCarry on after a pause. No body.
/api/v1/ai-calling/campaigns/{id}/cancelEnd a draft or pending campaign for good. No body.
/api/v1/ai-calling/campaigns/{id}/test-callOne real call to a number of yours with the campaign's script, at any hour. Billed like any call. Answers 202 with recipient_id; read it with GET /api/v1/ai-calling/calls?kind=test&recipient_id=…
{ "phone": "9876543210" }