Pause a running campaign
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$Default Response
application/json- response
status*string"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"previousStatus*string"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"curl -X POST 'https://api.tryzen.co/v1/campaigns/string/pause'{ "status": "draft", "previousStatus": "draft"}Launch a draft POST
**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`.
Resume a paused (or finished) campaign POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Paused or Finished → Starting; the campaign then moves to In progress by itself. Held leads continue with what was left of their delays. Refused (409, with the reason in `error.problems`) when none of its senders is connected (`no_connected_sender`) or when its schedule's end date has passed (`end_date_passed`; move a paused campaign's end date first, extend a finished one's). A move the status machine doesn't allow is 409 `campaign_transition_refused`.