TryzenAPI
Campaigns

One action on up to 200 selected leads

POST
/v1/campaigns/{campaignId}/leads/bulk

Access: an API key (or an org-wide key naming the workspace) with manage on campaigns.

Batch: through an API key, campaignLeadIds holds at most 100 items.

pause, resume, stop and remove apply lead by lead (one refused lead never holds the others back); results has one outcome per id: done, already, refused (with its code), changed or not_found. move adds the leads to another campaign (in progress, paused or finished, launched): they join its list and its workflow enrolls them, unless its exclusions skip them; leads still running here are stopped (their history stays). One transaction. 409 move_target_* when that campaign can't take leads.

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
action*string
Value in"pause""resume""stop""remove"
campaignLeadIds*array<>
Items1 <= items <= 200

Response Body

Default Response

application/json
  1. response
results*array<>
Itemsitems <= 200
counts*
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/bulk' \  -H 'Content-Type: application/json' \  -d '{  "action": "pause",  "campaignLeadIds": [    "string"  ]}'
Example Response
{  "results": [    {      "campaignLeadId": "string",      "outcome": "done",      "code": "string",      "message": "string"    }  ],  "counts": {    "property1": 0,    "property2": 0  }}