Email Campaigns
Create an email campaign
post/emailCampaigns
Request body
Example request
{
"tag": "Newsletter",
"sender": {
"name": "Mary from MyShop",
"email": "newsletter@myshop.com",
"id": 3
},
"name": "Newsletter - May 2017",
"htmlContent": "<!DOCTYPE html> <html> <body> <h1>Confirm you email</h1> <p>Please confirm your email address by clicking on the link below</p> </body> </html>",
"htmlUrl": "https://html.domain.com",
"scheduledAt": "2017-06-01T12:30:00+02:00",
"subject": "Discover the New Collection !",
"previewText": "Thanks for your order!",
"replyTo": "support@myshop.com",
"toField": "{FNAME} {LNAME}",
"recipients": {
"exclusionListIds": [
8
],
"listIds": [
32
],
"segmentIds": [
23
]
},
"attachmentUrl": "https://attachment.domain.com",
"inlineImageActivation": true,
"mirrorActive": true,
"footer": "[DEFAULT_FOOTER]",
"header": "[DEFAULT_HEADER]",
"utmCampaign": "NL_05_2017",
"params": {
"FNAME": "Joe",
"LNAME": "Doe"
},
"sendAtBestTime": true,
"abTesting": true,
"subjectA": "Discover the New Collection!",
"subjectB": "Want to discover the New Collection?",
"splitRule": 50,
"winnerCriteria": "open",
"winnerDelay": 50,
"ipWarmupEnable": true,
"initialQuota": 3000,
"increaseRate": 70,
"unsubscriptionPageId": "62cbb7fabbe85021021aac52",
"updateFormId": "6313436b9ad40e23b371d095"
}Response
Email campaign created
Example response
{
"id": 122
}