Replace a launched campaign's senders
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.
The full new list. Added senders start getting new leads; existing leads keep their sender. A removed sender's leads that it hasn't contacted yet (no invite, message or InMail) move to the others; the rest fail with sender_removed and can be resumed by hand. Drafts use the wizard's auto-save (422 campaign_not_launched); canceled and failed campaigns can't change (422 campaign_closed). Other 422 codes: no_senders, too_many_senders, sender_unknown, sender_not_connected, sequence_incompatible. A concurrent settings write is 409 conflict.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$application/json- body
senderIds*array<>1 <= items <= 500Default Response
application/json- response
senderIds*array<>added*array<>removed*array<>status*string"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"curl -X PUT 'https://api.tryzen.co/v1/campaigns/string/senders' \ -H 'Content-Type: application/json' \ -d '{ "senderIds": [ "string" ]}'{ "senderIds": [ "string" ], "added": [ "string" ], "removed": [ "string" ], "status": "draft"}The campaign's senders, in rotation order GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`.
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`.