TryzenAPI
Campaigns

Replace a launched campaign's senders

PUT
/v1/campaigns/{campaignId}/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.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

campaignId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
senderIds*array<>
Items1 <= items <= 500

Response Body

Default Response

application/json
  1. response
senderIds*array<>
added*array<>
removed*array<>
status*string
Value in"draft""scheduled""starting""in_progress""paused""finished""canceled""failed"
Example Request
curl -X PUT 'https://api.tryzen.co/v1/campaigns/string/senders' \  -H 'Content-Type: application/json' \  -d '{  "senderIds": [    "string"  ]}'
Example Response
{  "senderIds": [    "string"  ],  "added": [    "string"  ],  "removed": [    "string"  ],  "status": "draft"}