Per-step performance with the A/B comparison
Access: an API key (or an org-wide key naming the workspace) with view on campaigns.
One row per step of the current sequence, in reading order (yes branch first), all-time. total counts every decided attempt (succeeded, skipped, failed, requeued, excluded) and counts.succeeded the successful ones; counts.skipped = the step ran but the driver had nothing to do (a like with no post in the window), always filled. Acceptances and first replies are credited to the step that earned them (the lead's latest invite; the last contact step before the reply). variants compares the A/B variants of steps that have two or more. waiting = leads at that step now.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$Default Response
application/json- response
steps*array<>curl -X GET 'https://api.tryzen.co/v1/campaigns/string/analytics/steps'{ "steps": [ { "nodeId": "string", "type": "if_connected", "label": "string", "position": 1, "depth": 0, "branch": "yes", "counts": { "succeeded": 0, "failed": 0, "requeued": 0, "excluded": 0, "accepted": 0, "replied": 0, "skipped": 0 }, "total": 0, "rates": { "success": 0, "acceptance": 0, "reply": 0 }, "waiting": 0, "variants": [ { "variant": 0, "label": "string", "preview": "string", "counts": { "succeeded": 0, "failed": 0, "requeued": 0, "excluded": 0, "accepted": 0, "replied": 0, "skipped": 0 }, "total": 0, "rates": { "success": 0, "acceptance": 0, "reply": 0 } } ] } ]}Workspace dashboard: sends, acceptances and replies over a range GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. Sums of the daily campaign counters between `from` and `to` (UTC days `YYYY-MM-DD`, both included; default: the last 30 days, today included; at most 366 days). `campaignId` and `senderId` narrow every number to one campaign or one sender. `series` has one point per day, zeros included. Rates are outcome ÷ sends in the same range (`null` when nothing was sent), so over a short range an acceptance rate can exceed 1. Campaign `progress` is the leads' current state, not ranged. 422 `range_inverted | range_too_long`; 404 `campaign_not_found | sender_not_found` for an id that isn't in this workspace.
The leads at one step, with their status there GET
**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`.