Create a draft campaign from a template
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
application/json- body
templateId*string1 <= length <= 100name*string1 <= length <= 200listId?string^[0-9a-f]{24}$senderIds?array<>items <= 500Default Response
application/json- response
campaign*curl -X POST 'https://api.tryzen.co/v1/campaigns/from-template' \ -H 'Content-Type: application/json' \ -d '{ "templateId": "string", "name": "string"}'{ "campaign": { "id": "string", "name": "string", "status": "draft", "revision": 0, "listId": "string", "excludeListId": "string", "exclusions": { "otherCampaigns": false, "otherSenderConversations": false, "sameSenderOtherCampaigns": false, "blacklistLeads": true, "blacklistCompanies": true }, "senderIds": [ "string" ], "schedule": { "tz": "string", "days": [ "mon" ], "from": "string", "to": "string", "startDate": "string", "endDate": "string" }, "sequence": { "rootId": "string", "nodes": { "property1": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } }, "property2": { "type": "if_connected", "config": {}, "delay": { "value": 0, "unit": "hours" }, "branches": { "yes": "string", "no": "string" } } } }, "sequenceVersion": 1, "launchedAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Ready-made sequences to start a campaign from GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. The wizard's templates, each with its steps in reading order (depth-first, the `yes` branch before `no`). `needsSalesNav`: it has InMail steps, so every sender needs Sales Navigator.
Per-step performance with the A/B comparison GET
**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.