Create an email campaign
POST/api/partner-gateway/campaigns/email
Creates an email campaign as a draft (status CREATED). Nothing is sent until you confirm it with PUT /campaigns/email/{id}/confirm.
- Sender: a
VERIFIEDsender of your account, fromGET /campaigns/email/senders. For a domain withoutemailSenderFromNameId, its default From Name is used. - Recipients:
destinationType0 sends to the contacts of yourcontactListIds, 1 to the addresses indestinations. - Content: a
subjectand exactly one ofbodyHtmlandtemplateId. Placeholders such as{firstName}are replaced with each contact's fields. - Schedule: an optional
scheduledDate; without it the campaign is sent as soon as it is confirmed and its checks pass.
Request
Responses
- 201
- 400
- 401
- 404
The created campaign, in status CREATED.
The body is not valid: for example both or neither of bodyHtml and templateId, or a destinationType without its recipients.
The API key is missing or invalid, or holds neither CAMPAIGNS nor EMAIL.
The sender is not a VERIFIED sender of your account, or a contact list, template or attachment is not found in your account.