Create Email Campaign
POST
/email-campaigns/send
Email Marketing
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://rest.clicksend.com/v3/email-campaigns/send' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": "<p>This is a test</p>",
"from_email_address_id": 2,
"from_name": "From name",
"list_id": 456,
"name": "John Doe",
"subject": "Lorem Ipsum",
"template_id": 31
}'
Response Response Example
{
"data": {
"currency": {
"currency_name_long": "Australian Dollars",
"currency_name_short": "AUD",
"currency_prefix_c": "c",
"currency_prefix_d": "$"
},
"data": {
"abuse_count": 0,
"body": "<p>This is a test</p>",
"body_plain_text": "This is a test",
"click_count": 0,
"custom_string": "",
"date_added": "1458011424",
"email_campaign_id": 69,
"from_email_address_id": 2,
"from_name": "From name",
"hard_bounce_count": 0,
"list_id": 456,
"name": "John Doe",
"open_count": 0,
"schedule": "",
"send_count": 0,
"soft_bounce_count": 0,
"status": "Queued",
"subaccount_id": 1038,
"subject": "Lorem Ipsum",
"template_id": 31,
"unsubscribe_count": 0,
"user_id": 1201
},
"queued_count": 2,
"total_count": 6,
"total_price": "0.0066"
},
"http_code": 200,
"response_code": "SUCCESS",
"response_msg": "Email campaign has been created."
}
Request
Body Params application/json