Campaign Mailings


Fetch campaign mailings

Return json data about Marketing Campaign Emails

URL

/campaign_mailings

Method

GET

URL parameters

Optional:

items=[number] Number of records to return. Default value is 20 items when left unspecified.

page=[number] For pagination of results.

search=[alphanumeric] Regex string to search on

order_by[attribute] Order by any attribute listed in the Success json response example.

order=[asc | desc] Defaults to ascending.

Success Response

Code: 200
Content:

{
"data": [
{
"id": "string",
"type": "campaign_mailing",
"attributes": {
"subject": "string",
"created_at": "string",
"updated_at": "string",
"sent_count": "integer",
"delivered_count": "integer",
"viewed_count": "integer",
"clicked_count": "integer",
"bounced_count": "integer",
"unsubscribed_count": "integer"
}
},
]
}

Send campaign mailings

Send campaign email to recipients.

URL

/campaign_mailing_sends

Method

POST

Data parameters

{
"campaign_mailing_id" : "integer", //required
"campaign_mailing_send" : {
"sender_email" : "string", //required - email must be within the valid sender_domains
"subscription_list_id" : "string", //required if 'recipient_emails' is empty else optional
"recipient_list" : ["string"], //required if 'subscription_list_id' is empty else optional
"customer_name" : "string", //optional
"from_email" : "string", //optional
"from_name" : "string", //optional
"subject" : "string", //optional
}
}

Success Response

Code: 200
Content:

{}