With an authenticated user it is possible to load statistics of one or all campaign mails.
All Mails
GET <cambuildr-url>/api/v1/campaign_mails
The campaign mails are returned paginated. Page size and page number can be defined with the query parameters page_nr
and page_size
.
Response
{
"error": false,
"campaign_mails": [
{
"id": 333,
"name": "New Link Test",
"state": "SENT",
"started_at": "<date>",
"ended_at": "<date>",
"total_recipients": 2,
"sent": 2,
"opened": 2,
"clicked": 2,
"bounced": 0
},
...
],
"total_count": 40
}
Single Mail
GET <cambuildr-url>/api/v1/campaign_mails/<campaign-mail-id>