Skip to main content
POST
Create Campaign
Create a campaign to organize multiple calls under a single ID. agent_id is optional: include it to attach one agent to the whole campaign, or leave it out and choose an agent for each call.

Quick Example

With an agent attached to the campaign:
Without an agent (choose one per call later):

Workflow

1

Create the campaign

Response:
2

Add calls to the campaign

Use the batch_id from step 1 with the outbound call API:
3

Monitor in dashboard

Track campaign performance at /dashboard/batch-calls/{batch_id}

With or without an agent ID

  • With agent_id — calls you add without their own agent_id use the campaign’s agent, so you can send just the batch_id. A call can still pass its own agent_id.
  • Without agent_id — each call you add must include its own agent_id, so you can use a different agent for every call in the same campaign. This is handy when you don’t have the agent ready yet.

Response

Success (200 OK)

Save the batch_id - you’ll need it to add calls to this campaign!

Errors

Tips

Organize your campaigns: Use descriptive names like “Q1 Sales Outreach” or “December Follow-ups” to easily identify them in the dashboard.
Check the agent when adding calls: If the campaign was created without an agent_id and a call is added without one either, the call is rejected with no agent found with given batch_id.

Authorizations

X-API-KEY
string
header
required

Response

Campaign created successfully

batch_id
string

Unique identifier for the created campaign

Example:

"68433b7b0dee98e59245ebab"

message
string
Example:

"Campaign created successfully"

status
string
Example:

"success"