TryzenAPI
Campaigns

Counts over all of the campaign's leads: per status, reason and sender

GET
/v1/campaigns/{campaignId}/leads/facets

Access: an API key (or an org-wide key naming the workspace) with view on campaigns.

Unfiltered, for the status strip and the filter menus. Failure codes are canonical (an old spelling counts as the current one), most frequent first.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

campaignId*string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
total*integer
Range0 <= value <= 9007199254740991
byStatus*
replied*integer
Range0 <= value <= 9007199254740991
failureCodes*array<>
senders*array<>
Example Request
curl -X GET 'https://api.tryzen.co/v1/campaigns/string/leads/facets'
Example Response
{  "total": 0,  "byStatus": {    "property1": 0,    "property2": 0  },  "replied": 0,  "failureCodes": [    {      "code": "string",      "count": 0    }  ],  "senders": [    {      "id": "string",      "name": "string",      "count": 0    }  ]}