curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/stats{
"data": {
"stats": {
"sent_count": 123,
"opened_count": 123,
"clicked_count": 123,
"replied_count": 123,
"bounced_count": 123,
"unsubscribed_count": 123,
"open_rate": 123,
"click_rate": 123,
"reply_rate": 123
}
}
}Aggregate delivery, engagement, and response metrics for a campaign
curl --request GET \
--url https://api.example.com/v1/campaigns/{id}/stats{
"data": {
"stats": {
"sent_count": 123,
"opened_count": 123,
"clicked_count": 123,
"replied_count": 123,
"bounced_count": 123,
"unsubscribed_count": 123,
"open_rate": 123,
"click_rate": 123,
"reply_rate": 123
}
}
}Authorization: Bearer wbk_your_api_key_here
campaigns:read permission. Stats are aggregated across all steps and enrolled contacts.Show properties
Show Stats object
opened_count / sent_count as a float 0–1clicked_count / sent_count as a float 0–1replied_count / sent_count as a float 0–1curl https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/stats \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"stats": {
"sent_count": 1247,
"opened_count": 612,
"clicked_count": 143,
"replied_count": 89,
"bounced_count": 12,
"unsubscribed_count": 4,
"open_rate": 0.491,
"click_rate": 0.115,
"reply_rate": 0.071
}
}
}
| Status | Code | Description |
|---|---|---|
| 401 | invalid_key | Invalid or expired API key |
| 403 | insufficient_permissions | Missing campaigns:read permission |
| 404 | campaign_not_found | No campaign with this ID |
| 429 | rate_limited | Rate limit exceeded |