curl --request GET \
--url https://services.leadconnectorhq.com/emails/stats/location/{locationId}/{source}/{sourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"locationId": "abc123",
"source": "email-campaigns",
"sourceId": "campaign123",
"stats": {
"delivered": 1000,
"opened": 450,
"clicked": 120,
"unsubscribed": 5,
"complained": 2,
"permanentFail": 15,
"temporaryFail": 3,
"rejected": 10,
"failed": 5,
"replied": 25
},
"subSourceId": "step001"
}Get statistics for email campaigns, workflows, or bulk actions
curl --request GET \
--url https://services.leadconnectorhq.com/emails/stats/location/{locationId}/{source}/{sourceId} \
--header 'Authorization: Bearer <token>' \
--header 'Version: <version>'{
"locationId": "abc123",
"source": "email-campaigns",
"sourceId": "campaign123",
"stats": {
"delivered": 1000,
"opened": 450,
"clicked": 120,
"unsubscribed": 5,
"complained": 2,
"permanentFail": 15,
"temporaryFail": 3,
"rejected": 10,
"failed": 5,
"replied": 25
},
"subSourceId": "step001"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 "2021-07-28"
Location ID
"ve9EPM428h8vShlRW1KT"
Source type: email-campaigns, workflow-campaigns, or bulk-actions
email-campaigns, workflow-campaigns, bulk-actions "email-campaigns"
ID of the email campaign, workflow campaign, or bulk action
"abc123"
Workflow action ID. Only valid when source is workflow-campaigns
"step001"
Success
Location ID
"abc123"
Source type
email-campaigns, workflow-campaigns, bulk-actions "email-campaigns"
Source ID
"campaign123"
Show child attributes
Workflow action ID
"step001"
Was this page helpful?