Create campaign
Changed onCreates a campaign and linked email from at most one of prompt, HTML, Sequenzy blocks, or an existing template. Omit all content sources to create an empty draft. Optional From/Reply-To inputs create or select profiles; From addresses require a verified sending domain. Defaults to draft. Use status sent only to archive an imported/already-sent campaign. Marketer account keys must choose existing sender and Reply-To profiles; requests requiring new profiles return 400 before creating profiles, labels, or campaign/sequence changes, including nested steps and branches.
Request
- Base URLhttps://api.sequenzy.com/api/v1
- URLhttps://api.sequenzy.com/api/v1/campaigns
- AuthHTTP bearer
Request body
Example request
{
"attachments": [
{
"filename": "weekly-report.pdf",
"content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC...",
"path": "https://example.com/files/terms.pdf",
"contentType": "application/pdf"
}
]
}Response
Campaign created
Example response
{
"success": true,
"campaign": {
"emailPreset": "branded",
"status": "draft",
"labels": [
"edm",
"api"
],
"attachments": [
{
"filename": "weekly-report.pdf",
"path": "https://files.sequenzy.com/email-attachments/comp_abc123/3f1c.../weekly-report.pdf"
}
],
"url": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_abc123",
"previewUrl": "https://sequenzy.com/dashboard/company/comp_abc123/campaign/camp_abc123?step=review"
},
"warnings": [
"blocks[0].styles.color is not a supported field and was ignored. Button label color comes from the block-level `buttonTextColor` field. Supported styles fields: backgroundColor, backgroundOpacity, bleed, borderColor, borderRadius, borderWidth, keepAlign, paddingBottom, paddingLeft, paddingRight, paddingTop, textAlign, textColor."
],
"ignoredFields": [
{
"path": "sendAt"
}
]
}Changes
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- info
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info