Remove one sender from a campaign
Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.
Idempotent: adding a sender already in the campaign, or removing one that isn't, changes nothing (200). On a launched campaign the replace's rules apply (PUT …/senders): added senders get new leads, a removed sender's untouched leads move to the others and its contacted ones fail with sender_removed; 422 no_senders for the last one, sender_unknown, sender_not_connected, sequence_incompatible, campaign_closed. A draft only refuses sender_unknown and too_many_senders (launch-check reports the rest). A concurrent change is 409 conflict.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$senderId*string^[0-9a-f]{24}$Default Response
application/json- response
senderIds*array<>added*array<>removed*array<>status*string"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"curl -X DELETE 'https://api.tryzen.co/v1/campaigns/string/senders/string'{ "senderIds": [ "string" ], "added": [ "string" ], "removed": [ "string" ], "status": "draft"}Add one sender to a campaign POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Idempotent: adding a sender already in the campaign, or removing one that isn't, changes nothing (200). On a launched campaign the replace's rules apply (`PUT …/senders`): added senders get new leads, a removed sender's untouched leads move to the others and its contacted ones fail with `sender_removed`; 422 `no_senders` for the last one, `sender_unknown`, `sender_not_connected`, `sequence_incompatible`, `campaign_closed`. A draft only refuses `sender_unknown` and `too_many_senders` (`launch-check` reports the rest). A concurrent change is 409 `conflict`.
Edit a launched campaign's sequence: saves version N+1 PUT
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Allowed: texts, subjects, fallbacks, delays, step settings, editing and adding A/B variants. Rejected (status 200, `structure_changed`): adding, removing, retyping or rewiring steps, moving the root, removing a variant. The full validation runs with the campaign's senders and lead-list fields (`invalid`). Versions are immutable; running leads read the new one at their next step. Send the `sequenceVersion` you loaded as `expectedVersion`: a save in between is 409 `sequence_version_stale`. Drafts and finished campaigns are 409 `sequence_not_editable`.