Email campaigns
List the email senders
Create an email campaign
Update an email campaign
Get the price of an email campaign
Confirm an email campaign
Get an email campaign
List email campaigns
Delete an email campaign
Quick guideโ
Email campaigns have endpoints of their own, under /campaigns/email, and GET /campaigns does not list them. Only the contacts with the email marketing consent (email_status: OPTIN) receive them. SMS, RCS and WhatsApp have campaigns of their own, each in its section: SMS, RCS, WhatsApp.
- Pick the sender with
GET /campaigns/email/senders: aVERIFIEDaddress or domain of your account, verified in the Qlara platform, and for a domain one of its From Names. - Create the campaign with
POST /campaigns/email: it starts as a draft,CREATED. It needs asubjectand exactly one ofbodyHtmlandtemplateId.destinationType0sends to the contacts ofcontactListIds,1to the addresses indestinations. Add ascheduledDateto send it later. - Check the price with
GET /campaigns/email/{id}/price:effectiveDestinationsare the recipients charged,exclusionscounts those left out (no valid address, no consent, a previous hard bounce), andhasEnoughCredittells whether your wallet covers the price. - Confirm it with
PUT /campaigns/email/{id}/confirm: it answers202, reserves the price and moves the campaign toVALIDATINGwhile the platform checks it, then toPRE_BILLED, or toREJECTEDorQUARANTINEwhen the checks fail. A wallet that does not cover the price answers402. Every email carries an unsubscribe link: give your own link anidin the HTML (<a id="unsubscribe" href="#">) and pass thatidasunsubscribeLinkId; otherwise a standard unsubscribe link is added at the end of the email. The{unsubscribe}marker of the single email send does not work in a campaign. - Follow it with
GET /campaigns/email/{id}: itsstatusand the counters of sent, opened and clicked emails.
PUT /campaigns/email/{id} changes a campaign and moves it back to CREATED, to be confirmed again. DELETE /campaigns/email/{id} deletes it only before it is READY and, once confirmed, outside the platform's edit window, the minutes before the start in which a campaign can no longer change.
To send one email to one recipient, without a campaign, see Email.
Use cases: UC-010: Bulk Email Campaign