Skip to main content
POST
Create campaign

Authorizations

Authorization
string
header
required

Send your team API key or project token as Authorization: Bearer <token>. The credential must have the required permissions. Project tokens can access only their own project.

Body

application/json
name
string
required

Campaign name, trimmed before validation. Must not be blank.

Value constraints

Required string length: 1 - 200
projectId
string<uuid>

Required when using a team API key. Project tokens derive the project from the credential.

Value constraints

templateId
string<uuid>

Identifier of the message template.

Value constraints

recipientListId
string<uuid>

Audience in the same team whose members are copied when the campaign launches.

Value constraints

senderConfig
object

Structured sender config values for this management create platform campaign request.

scheduledAt
number

Scheduled start time in Unix milliseconds.

sendWindow
object | null

Specifies send window for this management create platform campaign request.

Accepted alternatives

recipients
object[]

At most 1,000 recipients per request.

Value constraints

Maximum array length: 1000
recipientCount
number

Ignored when inline recipients are provided; their stored count is authoritative.

composerBlueprint
any

Specifies composer blueprint for this management create platform campaign request.

messagesArray
any

Specifies messages array for this management create platform campaign request.

audienceRef
any

Specifies audience ref for this management create platform campaign request.

complianceConfig
any

Specifies compliance config for this management create platform campaign request.

variants
any

Specifies variants for this management create platform campaign request.

variantStrategy
any

Specifies variant strategy for this management create platform campaign request.

Response

Success

data
object
required

Structured data carried by this object.