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 } } ] } ]}Create a draft campaign from a template POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. **Batch:** through an API key, `senderIds` holds at most 100 items. A draft with the template's sequence, and optionally its lead list and senders (rotation order). 404 `template_not_found`; 422 `list_not_found` or `sender_unknown` for ids that aren't in this workspace. Nothing launches: check it with `launch-check`, edit it with `PATCH …/draft`.
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`.