Create Campaign

Create a draft campaign.

MethodPOST
/api/v2/campaigns

Creates a draft campaign. Permission: campaigns.

Omitted content gets a default template with an unsubscribe link. Omitted senderId uses the default sender, then last used, then any available sender.

Body Parameters

NameTypeDescription
subjectstringRequired. Email subject line.
namestringCampaign name. Default Untitled. Max 100.
previewstring or nullPreview / preheader text.
contentunknownTipTap JSON (object or string). Default includes an unsubscribe link.
contentType"MAILY" | "PLATE" | "MARKDOWN"Content format. Default MAILY.
senderIdstringEmail sender id. Defaults to the org default sender.
replyTostring or nullReply-To address.

Response Fields

FieldTypeDescription
idstringCampaign id.
namestringCampaign name.
subjectstringSubject line.
previewstring or nullPreview text.
statusstringAlways DRAFT on create.
contentTypestringMAILY, PLATE, or MARKDOWN.
senderIdstringAssigned sender id.
replyTostring or nullReply-To address.
createdAtstringISO 8601 created timestamp.

Errors

StatusnameWhen
401missing_api_keyMissing or invalid bearer token
403missing_permissionToken lacks the campaigns permission
422validation_errorMissing subject or invalid payload