Skip to main content
POST
Create a campaign

Authorizations

Authorization
string
header
required

Your workspace secret key, sk_live_ followed by 32 hex characters. Create one in the console under Developers.

Body

application/json
agent_id
string
required
end_date
string
required
name
string
required
slots
object[]
required
start_date
string
required
timezone
string
required
agent_revision
integer
Required range: x >= 1
always_on
boolean
budget_paise
integer
caller_id_max_per_hour
integer
caller_ids
string[]
caller_name
string
contacts
object[]
dial_cps
number
final_results
boolean
max_concurrent
integer
max_duration_secs
integer
pause_after_connected
integer | null

Pause the campaign on its own once this many calls have connected (completed or timeout; voicemail does not count). Counting starts when it is set and again on each start or resume after it paused the campaign. null removes it. May change while the campaign runs.

Required range: 1 <= x <= 100000
phone_number_id
string | null

One of your phone numbers (GET /v2/phone-numbers) that every call of this campaign rings from, through its own provider connection. null clears it. Exclusive with caller_ids.

pool_id
string | null

One of your phone pools (GET /v2/phone-pools): each contact rings from the number the pool picks. null clears it. Exclusive with phone_number_id and caller_ids.

re_attempt_period_secs
integer
retry_count
integer
skip_called_before
boolean
tier
string
webhook_url
string
worker_pool
string[]

Response

Draft created