POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Minimum string length: 1
from
string
required
Minimum string length: 1
subject
string
required
Minimum string length: 1
contactBookId
string
required
Minimum string length: 1
previewText
string
content
string
Minimum string length: 1
html
string
Minimum string length: 1
replyTo
Minimum string length: 1
cc
Minimum string length: 1
bcc
Minimum string length: 1
sendNow
boolean
scheduledAt
string

Timestamp in ISO 8601 format or natural language (e.g., 'tomorrow 9am', 'next monday 10:30')

batchSize
integer
Required range: 1 <= x <= 100000
topicId
string

Send only to contacts in the contact book who receive this topic. Must be one of the team's topics.

Minimum string length: 1
segmentId
string

Send only to contacts who match this segment's rules when the campaign goes out. Must be a segment of the campaign's contact book.

Minimum string length: 1

Response

200 - application/json

Create a campaign

id
string
required
name
string
required
from
string
required
subject
string
required
previewText
string | null
required
contactBookId
string | null
required
topicId
string | null
required
segmentId
string | null
required
segmentName
string | null
required

The segment's name when the campaign was scheduled.

html
string | null
required
content
string | null
required
status
string
required
scheduledAt
string<date-time> | null
required
batchSize
integer
required
batchWindowMinutes
integer
required
total
integer
required
sent
integer
required
delivered
integer
required
opened
integer
required
clicked
integer
required
unsubscribed
integer
required
bounced
integer
required
hardBounced
integer
required
complained
integer
required
replyTo
string[]
required
cc
string[]
required
bcc
string[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required