Create a campaign
Create a campaign
Authentication
AuthorizationBearer
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Request
This endpoint expects an object.
name
The name of the campaign
audienceId
The ID of the audience
agentId
The ID of the agent
description
The description of the campaign
phoneNumberIds
Optional list of caller-ID phone number IDs to rotate across when placing outbound calls for this campaign. If omitted, the agent’s default phone number is used.
scheduledAt
Optional ISO-8601 timestamp for when the campaign should
start dialing. Must be in the future. If provided, the
campaign is created in scheduled status; otherwise it
starts in draft status and must be started manually.
maxRetries
Maximum number of times a failed call is retried before the
participant is marked as failed. 0 disables retries.
retryDelay
Delay in minutes between retry attempts for a failed call.
Response
Campaign created successfully
status
data
Errors
400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error

