Skip to main content
POST
Create a new campaign
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
A campaign is a managed outreach effort where you have full lifecycle control. You can pause, resume, and cancel it at any time. Unlike a batch call (which is one-shot), a campaign lets you add leads incrementally and control the pace of calling.

Batch calls vs. campaigns

Workflow

  1. Create the campaign with this endpoint.
  2. Add leads via Bulk Upload or Add Lead.
  3. Monitor delivery using campaign lead endpoints and call logs.
  4. Update campaign details when needed.
  5. Track each lead’s progress through campaign lead endpoints and call logs.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Body

application/json
title
string
required

Title of the campaign (max 150 characters)

Maximum string length: 150
Example:

"New Product Launch"

agent_id
string
required

Agent ID associated with the campaign

Example:

101

agent_version_number
number

Agent Version ID associated with the campaign

Example:

1

starts_at
string

Start timestamp of the campaign (ISO string)

Example:

"2025-05-10T09:00:00Z"

ends_at
string

End timestamp of the campaign (ISO string)

Example:

"2025-05-20T18:00:00Z"

calling_hours_start
string

Start of allowed calling hours (HH:mm format only, not full datetime)

Example:

"09:00"

calling_hours_end
string

End of allowed calling hours (HH:mm format only, not full datetime)

Example:

"18:00"

total_lead_count
number

Total Number of Leads for this Campaign

Example:

"10"

status
enum<string>

Status of the campaign

Available options:
draft,
waiting,
running,
paused,
completed,
cancelled,
deleted,
scheduled
Example:

"draft"

number_of_retries
number

Number of retries for the campaign (0-5)

Example:

3

interval_between_retries
number

Interval between retries in minutes (0-1440)

Example:

15

Response

Campaign created successfully