Campaigns
Create Campaign
Create an email campaign
POST
Create Campaign
Create a campaign and linked email. Campaigns are created as drafts by default. For migrations, pass
status: "sent" to archive an already-sent campaign without sending email or creating delivery history. You must have at least one sender profile configured before creating campaigns through the API.
Request
Campaign name.
Email subject line.
Optional campaign tracking code available to UTM templates as
{{campaign.trackingCode}}. Empty strings are stored as null.Initial status. Use
draft or sent; defaults to draft. sent is for
imported/already-sent campaigns only.ISO date-time for an imported/already-sent campaign. Only valid with
status: "sent"; defaults to the current time when omitted.Raw HTML body. Sequenzy converts this into email blocks. Use this or
blocks,
not both.Sequenzy email blocks. Use this or
html, not both. Put block styling under
styles; top-level style keys like backgroundColor, backgroundOpacity,
borderColor, borderWidth, and borderRadius are normalized into styles.Label names to assign to the campaign. Missing labels are created
automatically. The API also accepts
label as a compatibility alias.Campaign-scoped JSON data available while rendering this campaign.
Personalized list definitions computed from
campaignData.Responses
Create Campaign