Skip to main content
POST
Create a campaign

Authorizations

X-Api-Key
string
header
required

Your API key.

Body

application/json
name
string
required

Name of the campaign

agentId
string<uuid>
required

Unique identifier of the OUTBOUND agent to perform the campaign with

startDate
string<date>
required

Start date of the campaign

Example:

"2024-07-30"

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<int32>
required

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

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

Days of the campaign

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

Example:

"Europe/Paris"

Response

Created

id
string<uuid>

Unique identifier of the campaign

name
string

Name of the campaign

agentId
string<uuid>

Unique identifier of the agent to perform the campaign with

startDate
string<date>

Start date of the campaign

Example:

"2024-07-30"

timeSlots
object[]

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

batchSize
integer<int32>

The number of calls per...

retry
object

Retry parameters when the contact cannot be reached

days
enum<string>[]

Days of the campaign

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

Example:

"Europe/Paris"