Skip to main content

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 VERIFIED sender of your account, from GET /campaigns/email/senders. For a domain without emailSenderFromNameId, its default From Name is used.
  • Recipients: destinationType 0 sends to the contacts of your contactListIds, 1 to the addresses in destinations.
  • Content: a subject and exactly one of bodyHtml and templateId. 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​

The created campaign, in status CREATED.