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.

POST /api/v1/ai-calling/campaigns: both types
FieldTypeRequiredDescription
type"job" | "list"Yesjob calls a job's candidates; list calls people you send
namestringYesUp to 255 characters
phone_number_idstring (uuid) | nullTo startFrom GET /ai-calling/numbers. Can be set later, but a campaign cannot start without one
greeting_messagestring | nullNoWhat the agent opens with, up to 1,000 characters. Can use {{candidateName}}, {{recruiterName}}, {{myCompany}}, {{jobTitle}} and {{clientName}}. Left out: the default greeting
schedule.daysinteger[]NoDays to call on: 0 Sunday to 6 Saturday (default 1–6)
schedule.start_timestringNo24-hour time in India, e.g. 09:00 (default 09:00)
schedule.end_timestringNoDefault 20:00. The same as start_time means all day; earlier than start_time means overnight
schedule.max_retriesintegerNoTimes to try again after no answer, 0–10 (default 2)
schedule.retry_after_hoursintegerNoHours between tries, 1–168 (default 4)
standard_questions(string | object)[]NoIds 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_checkobjectNo{ 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_emailstringNoWho 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_idstringNoYour 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
type = job, as well
FieldTypeRequiredDescription
job_idstring (uuid)YesAn active job. Cannot be changed later
pipeline_statusesstring[]YesCall 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)[]NoThe job's own question ids, or { id, expected_answer? }. Default: all of them
type = list, as well
FieldTypeRequiredDescription
call_topic.titlestringYesSaid as the role, e.g. Sales Executive in Pune (120 characters)
call_topic.companystring | nullNoThe hiring company (120 characters)
call_topic.detailsstring | nullNoWhat the agent may tell a candidate who asks: pay, location, timings (4,000 characters). It says nothing that is not here
custom_questionsobject[]No{ question, expected_answer?, id? }: up to 25, asked in order. At least one question of any kind is needed
contactsobject[]No{ name, phone }: up to 500 here, more through recipients. Leave it out to add people as they arrive
A job campaign
{
  "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]"
}
A list campaign
{
  "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

data object
FieldTypeRequiredDescription
idstring (uuid)—Campaign id
type"job" | "list"—What it calls
namestring—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_idstring | null—Your id
job_id, job_titlestring | null—Job campaigns
client_id, client_namestring | null—The job's client
call_topicobject | null—List campaigns: { title, company, details }
phone_numberobject | null—{ id, number, name, status, status_reason }. A status other than active means no calls go out
recruiter_namestring | null—Who the agent introduces itself as
greeting_messagestring | null—null: the default greeting
scheduleobject—{ days, start_time, end_time, timezone, max_retries, retry_after_hours }
pipeline_statusesstring[] | null—Job campaigns; [] is every status
questionsobject[]—{ id, kind, question, type, required, options, expected_answer }, in the order asked. kind: standard, pre_interview, custom, job_change or referral
recipientsobject—How many people, by status: { total, pending, queued, calling, completed, partial, no_answer, failed, skipped }
callsobject—{ total, talk_seconds, credits_used }. Test calls are not counted
allowed_actionsstring[]—What can be done now: update, start, pause, resume, cancel, add_recipients, test_call, delete
started_at, completed_atstring (ISO 8601 date-time) | null—When
created_at, updated_atstring (ISO 8601 date-time)—When
On create, as well
FieldTypeRequiredDescription
createdboolean—false (with 200) when external_id already had a campaign
skipped_contactsobject[]—People left out: { index, name, phone, reason }. reason: no_name, not_an_indian_mobile or duplicate
A running campaign
{
  "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.

PUT /api/v1/ai-calling/campaigns/{id}
FieldTypeRequiredDescription
namestringNoBoth types
phone_number_idstring (uuid) | nullNoBoth types. null takes the number off
greeting_messagestring | nullNoBoth types. null goes back to the default
scheduleobjectNoBoth types. Only the parts sent change
standard_questions(string | object)[]NoBoth types. Replaces the standard questions, with their wording and expected answers
job_change_checkobjectNoBoth types
pipeline_statusesstring[]NoJob campaigns. People still waiting for a first call join or leave the queue; anyone already called stays
pre_interview_questions(string | object)[]NoJob campaigns. Replaces them
call_topicobjectNoList campaigns. Replaces it
custom_questionsobject[]NoList 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.

In the response
FieldTypeRequiredDescription
dialing.statestring—What the dialer is doing now (below)
dialing.calls_startedinteger—Calls handed over by this request
dialing.messagestring | null—Why, in words
dialing.state
FieldTypeRequiredDescription
callingstate—A call is going out
queuedstate—In the queue; the dialer takes it next
outside_calling_hoursstate—Calls go out when the schedule next opens
waiting_for_linestate—Every calling line is in use. Campaigns take turns
waiting_for_creditsstate—Not enough credits. Calling carries on by itself once there are
waiting_for_peoplestate—Nobody to call yet
finishedstate—Everyone has been called
blockedstate—Something has to be put right: see message (a released number, say)
Started in the evening
{
  "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

GET /api/v1/ai-calling/campaigns: query
FieldTypeRequiredDescription
statusstringNoA campaign status
type"job" | "list"NoCampaign type
job_idstring (uuid)NoOne job's campaigns
external_idstringNoThe campaign with this id of yours
searchstringNoIn the name, job title or topic
limitintegerNoPage size (1–100, default 50)
offsetintegerNoSkip N records (default 0)
Meta
FieldTypeRequiredDescription
meta.totalinteger—Total matching records
meta.limitinteger—Page size used
meta.offsetinteger—Offset used
POST/api/v1/ai-calling/campaigns

Create a draft campaign.

GET/api/v1/ai-calling/campaigns

List campaigns, newest first.

GET/api/v1/ai-calling/campaigns/{id}

One campaign, with its counts and credits.

PUT/api/v1/ai-calling/campaigns/{id}

Change a draft or paused campaign. Only what is sent changes.

DELETE/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.

POST/api/v1/ai-calling/campaigns/{id}/start

Start a draft. It needs a number. No body.

POST/api/v1/ai-calling/campaigns/{id}/pause

Stop new calls, and the ones that have not rung yet. A call already connected finishes. No body.

POST/api/v1/ai-calling/campaigns/{id}/resume

Carry on after a pause. No body.

POST/api/v1/ai-calling/campaigns/{id}/cancel

End a draft or pending campaign for good. No body.

POST/api/v1/ai-calling/campaigns/{id}/test-call

One 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=…

Example
{ "phone": "9876543210" }