v1
latestOpenAPI 3.1.2Apache-2.02026-08-066040125.5 KBCampaigns
Create a campaign
Create and send or schedule a campaign. One of 'body' or 'template_id' is required. One of 'list_id' or 'segment_id' is required.
post/campaigns
Request body
Example request
{
"sender_name": "my_sender_name",
"sender_email": "my_sender@test.com",
"subject": "hello customer",
"body": "SmFja2llIENoYW4=",
"segment_id": 12345,
"send_date": "2016-02-02 23:34:23",
"name": "my_api_campaign",
"use_dynamic_list": true,
"attachments": {
"text.txt": "my content file"
},
"attachments_binary": {
"text.txt": "bXkgY29udGVudCBmaWxlIGluIGJhc2U2NA=="
},
"type": "draft",
"body_amp": "bXkgYW1wIGJvZHk=",
"stats": {
"opens": true,
"clicks": false,
"utm_campaign": "MY_UTM"
}
}Response
Campaign created
Example response
{
"id": 245587,
"status": 13,
"count": 1,
"tariff_email_qty": 1,
"overdraft_price": "0.0044",
"ovedraft_currency": "USD"
}