Email campaigns sent to people.
Create a campaign
A draft, with the people of a list or the given master ids (up to 50,000).
Headers
X-Entayo-ProjectThe project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.
Create a campaign › Request Body
namelist_idmaster_idssender_idA sender from List senders.
Create a campaign › Responses
The draft and who made it in.
Edit a campaign
path Parameters
idHeaders
X-Entayo-ProjectThe project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.
Edit a campaign › Request Body
namesubjectpreheaderhtmlThe email body. {{first_name}}-style merge fields are filled per person.
sender_idinclude_signaturereply_to_modereply_toEdit a campaign › Responses
{ campaign, attachments, errors }.
Add recipients
Remove recipients
Preview the email for one recipient
path Parameters
idHeaders
X-Entayo-ProjectThe project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.
Preview the email for one recipient › Request Body
recipient_idindexOr the n-th recipient.
subjectpreheaderhtmlPreview the email for one recipient › Responses
{ subject, preheader, html, text, recipient }.
Send a test email
path Parameters
idHeaders
X-Entayo-ProjectThe project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.
Send a test email › Request Body
tosubjecthtmlsender_idSend a test email › Responses
{ ok: true }.
Launch a campaign
Sends it now, or spread over a time window. This sends real email.
path Parameters
idHeaders
X-Entayo-ProjectThe project to work in (List projects → id). Left out → Default. Not yours → 404 project_not_found.
Launch a campaign › Request Body
modestart_atduration_hoursLaunch a campaign › Responses
{ queued, drained, campaign, stats }.