Analytics


Fetch Analytics

Return json data about analytics

URL

/analytics

Method

GET

Success Response

Code:200
Content:

{
"data": {
"totals": {
"delivered_count": "number",
"viewed_count": "number",
"clicked_count": "number",
"bounced_count": "number",
"unsubscribed_count": "number"
},
"campaign_mailings": [
{
"id": "string",
"type": "campaign_mailing",
"attributes": {
"subject": "string",
"created_at": "string",
"updated_at": "string",
"delivered_count": "number",
"viewed_count": "number",
"clicked_count": "number",
"bounced_count": "number",
"unsubscribed_count": "number"
}
}
],
"campaign_mailing_sends": [
{
"id": "string",
"type": "campaign_mailing_send",
"attributes": {
"campaign_mailing_id": "string",
"sender_email": "string",
"from": "string",
"reply_to": null,
"subject": "string",
"created_at": "string",
"updated_at": "string",
"delivered_count": "number",
"viewed_count": "number",
"clicked_count": "number",
"bounced_count": "number",
"unsubscribed_count": "number"
}
}
]
}
}