POST
/
v1
/
campaigns

Authorizations

X-Api-Key
string
header
required

Your API key.

Body

application/json
name
string
required

Name of the campaign

agentId
string
required

Unique identifier of the OUTBOUND agent to perform the campaign with

startDate
string
required

Start date of the campaign

timeSlots
object[]
required

Calls will only be performed during the allowed time slots: 10:00-13:00 and 14:00-20:00. If the specified time slots overlap partially with these intervals, only the overlapping portion will be used. For example: if "11:00-15:00" is provided, calls will occur from 11:00 to 13:00 and 14:00 to 15:00. Maximum of 2 time slots are allowed

batchSize
integer
required

The number of calls per day, minimum 1, maximum 1000

Required range: 1 < x < 1000
days
enum<string>[]
required

Days of the campaign

Available options:
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
retry
object

Retry parameters when the contact cannot be reached

recipients
object[]

List of recipients to call, minimum 1, maximum 1000

timezone
string

The timezone of the campaign

Response

201
application/json
Created
id
string

Unique identifier of the campaign

name
string

Name of the campaign

agentId
string

Unique identifier of the agent to perform the campaign with

startDate
string

Start date of the campaign

timeSlots
object[]

Timeslots of the campaign (when the calls will be performed during the day). Max 2 timeslots

batchSize
integer

The number of calls per...

retry
object

Retry parameters when the contact cannot be reached

days
enum<string>[]

Days of the campaign

Available options:
MONDAY,
TUESDAY,
WEDNESDAY,
THURSDAY,
FRIDAY,
SATURDAY,
SUNDAY
status
enum<string>

Status of the campaign

Available options:
ACTIVE,
PAUSED,
CANCELLED
timezone
string

The timezone of the campaign