Create a campaign with its lists and messages

Create a campaign, its list targeting, its messages and its schedule in one call.

The campaign is created as a draft, or as a scheduled campaign when scheduledDate names a future date. Creating a campaign does not send it: use PUT /campaigns/{campaignId}/enable or POST /campaigns/{campaignId}/finish for that.

Requires the Campaign module and permission to create campaigns.

POST /campaign remains available for creating an empty campaign from a name and type alone.

Body Params
campaign
object
required
Responses

403

The account does not have the Campaign module, or the user cannot create campaigns.

422

The payload is invalid: a missing listIds/messages, a duplicate messageId, a scheduledDate in the past, or a campaign that could not be created.

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json