Launch a draft
Access: an API key (or an org-wide key naming the workspace) with manage on campaigns. A key also needs the launchCampaigns permission, which is off unless ticked when the key is made.
Re-checks every precondition on the server, in the same transaction as the status flip: lead list exists and is ready, senders connected, schedule, and the sequence (with the list's custom fields as variables). Rejections list every issue (status 200). A concurrent change is 409 campaign_changed. launch-check answers the same without launching. An API key needs the launchCampaigns permission (403 api_key_not_allowed without it); keys made before it existed have it when they hold manage on campaigns.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$Default Response
application/json- response
status*"launched""launched"campaignStatus*string"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"launchedAt*string^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timesequenceVersionId*string^[0-9a-f]{24}$warnings*array<>curl -X POST 'https://api.tryzen.co/v1/campaigns/string/launch'{ "status": "launched", "campaignStatus": "draft", "launchedAt": "2019-08-24T14:15:22Z", "sequenceVersionId": "string", "warnings": [ { "code": "not_draft", "severity": "error", "field": "status", "message": "string" } ]}Would this draft launch now? Every problem, without launching POST
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. Runs exactly the launch's checks (lead list exists and is ready, senders connected, schedule, the sequence with the list's custom fields as variables) and changes nothing. `ok` with warnings only, or not ok with every issue, in the shapes `launch` rejects with: `issues` and `sequenceIssues`. `wouldBecome` is `starting`, or `scheduled` for a future start date. A campaign that isn't a draft answers `ok: false` with `not_draft`.
Pause a running campaign POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. In progress → Paused. Senders stop working for it and every lead holds before its next step (delays freeze). A move the status machine doesn't allow is 409 `campaign_transition_refused`.