Get Campaign Statistics
GET/emails/stats/location/:locationId/:source/:sourceId
deprecated
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Get statistics for email campaigns, workflows, or bulk actions
Request
Version stringrequired
API Version
Available options
2021-07-28locationId stringrequired
Location ID
source stringrequired
Source type: email-campaigns, workflow-campaigns, or bulk-actions
Available options
email-campaignsworkflow-campaignsbulk-actionssourceId stringrequired
ID of the email campaign, workflow campaign, or bulk action
subSourceId string
Workflow action ID. Only valid when source is workflow-campaigns
Success
- application/json
- Schema
- Example (auto)
Schema
locationIdstringrequired
Location ID
sourcestringrequired
Source type
Available options
email-campaignsworkflow-campaignsbulk-actionssourceIdstringrequired
Source ID
subSourceIdstring
Workflow action ID
statsobjectrequired
Email performance metrics
{
"locationId": "abc123",
"source": "email-campaigns",
"sourceId": "campaign123",
"subSourceId": "step001",
"stats": {
"delivered": 1000,
"opened": 450,
"clicked": 120,
"unsubscribed": 5,
"complained": 2,
"permanentFail": 15,
"temporaryFail": 3,
"rejected": 10,
"failed": 5,
"replied": 25
}
}