Create Campaign

Create a new outbound campaign.

POST/campaigns

Create a new outbound campaign with contacts and configuration.

No parameters for this endpoint.


Request Body

FieldTypeRequiredDefaultDescription
namestringYesCampaign display name
agent_idstringYesVoice-enabled agent to use (ag_*)
typestringYesCampaign type: voice, sms
contactsstring[]YesList of phone numbers in E.164 format (+1234567890)
message_templatestringNoMessage template with {{variable}} placeholders
schedulestringNoImmediateISO 8601 datetime to start the campaign
max_concurrentintegerNo1Maximum concurrent calls/messages
from_numberstringNoDefaultOutbound caller ID (must be verified)

Response 201

{
  "id": "camp_a1b2c3d4",
  "name": "Follow-up Campaign",
  "status": "draft",
  "type": "voice",
  "agent_id": "ag_c47e7c97_b2f2",
  "total_contacts": 2,
  "completed": 0,
  "failed": 0,
  "scheduled_at": "2026-03-10T09:00:00Z",
  "created_at": "2026-03-07T14:00:00Z"
}

Campaign Lifecycle

draft → launched → running → completed

                paused

Use Launch, Pause, and Resume to control execution.


Errors

CodeDescription
401Missing or invalid authentication
402Insufficient balance for campaign
404Agent not found
422Invalid contacts or configuration

On this page