Skip to main content
POST
Create campaign
This endpoint allows you to create a new outbound calling campaign with the specified configuration.

Request body

string
required
The name of the campaign. Maximum 255 characters.
integer
required
The ID of the assistant to use for the campaign. Must be an outbound-capable assistant.
string
Timezone identifier for the campaign (e.g., America/New_York, Europe/London). Defaults to your account timezone.
integer
default:"3"
Maximum number of simultaneous calls. Minimum: 1. Maximum depends on your plan’s parallel calls limit (up to 10).
string
default:"00:00"
Start of the allowed calling window in H:i format (e.g., 09:00).
string
default:"23:59"
End of the allowed calling window in H:i format (e.g., 17:00).
array
default:"all 7 days"
Array of weekday names when calls are allowed. Valid values: monday, tuesday, wednesday, thursday, friday, saturday, sunday.
integer
default:"3"
Maximum number of retry attempts for failed calls. Range: 1-5.
integer
default:"60"
Interval in minutes between retry attempts. Range: 10-4320 (up to 3 days).
boolean
Whether to retry calls that reached voicemail.
boolean
Whether to retry calls where the goal was not completed.
string
Name of a boolean variable from your assistant’s post-call schema to track goal completion. Maximum 255 characters.
boolean
default:"true"
Whether to automatically mark the campaign as complete when there are no remaining leads to call.
array
Array of phone number IDs to use for the campaign. Each ID must be a distinct integer.

Response

string
Success message confirming the campaign was created
object
The created campaign data

Error Responses