TryzenAPI
Stats

The leads at one step, with their status there

GET
/v1/campaigns/{campaignId}/analytics/steps/{nodeId}/leads

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

state=attempted (default): every lead with an attempt at this step, with its latest outcome; succeeded | failed | requeued narrow that to one outcome, variant to one A/B variant. state=waiting: leads whose current step it is. Keyset paging in campaignLeads id order: pass nextCursor as after.

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

campaignId*string
Match^[0-9a-f]{24}$
nodeId*string
Match^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$

Query Parameters

state?string
Default"attempted"
Value in"attempted""succeeded""failed""requeued""waiting"
variant?integer
Range0 <= value <= 9007199254740991
after?string
Match^[0-9a-f]{24}$

Response Body

Default Response

application/json
  1. response
rows*array<>
Itemsitems <= 50
nextCursor*|null
Example Request
curl -X GET 'https://api.tryzen.co/v1/campaigns/string/analytics/steps/string/leads'
Example Response
{  "rows": [    {      "id": "string",      "lead": {        "id": "string",        "firstName": "string",        "lastName": "string",        "headline": "string",        "companyName": "string",        "profileUrl": "string"      },      "sender": {        "id": "string",        "name": "string"      },      "state": "succeeded",      "variant": 0,      "code": "string",      "at": "2019-08-24T14:15:22Z",      "status": "pending"    }  ],  "nextCursor": "string"}