Skip to main content
GET
/
v1
/
campaigns
/
{id}
/
stats
Campaign Stats
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
    }
  }
}

Request

Path Parameters

id
string
required
The campaign’s unique ID (UUID)

Headers

Authorization: Bearer wbk_your_api_key_here
Requires an API key with the campaigns:read permission. Stats are aggregated across all steps and enrolled contacts.

Response

data
object
curl https://data.leadlex.com/functions/v1/api-gateway/v1/campaigns/cmp_abc123/stats \
  -H "Authorization: Bearer wbk_your_api_key_here"

Example Response

{
  "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
    }
  }
}

Errors

StatusCodeDescription
401invalid_keyInvalid or expired API key
403insufficient_permissionsMissing campaigns:read permission
404campaign_not_foundNo campaign with this ID
429rate_limitedRate limit exceeded