TryzenAPI
Campaigns

Add one sender to a campaign

POST
/v1/campaigns/{campaignId}/senders/{senderId}

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.

Authorization

apiKey
headerx-api-key<token>

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

Path Parameters

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

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 POST 'https://api.tryzen.co/v1/campaigns/string/senders/string'
Example Response
{  "senderIds": [    "string"  ],  "added": [    "string"  ],  "removed": [    "string"  ],  "status": "draft"}