One action on up to 200 selected leads
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.
apiKeyx-api-key<token>Workspace API key (nrk_…), shown once when created
campaignId*string^[0-9a-f]{24}$application/json- body
action*string"pause""resume""stop""remove"campaignLeadIds*array<>1 <= items <= 200Default Response
application/json- response
results*array<>items <= 200counts*curl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/bulk' \ -H 'Content-Type: application/json' \ -d '{ "action": "pause", "campaignLeadIds": [ "string" ]}'{ "results": [ { "campaignLeadId": "string", "outcome": "done", "code": "string", "message": "string" } ], "counts": { "property1": 0, "property2": 0 }}Give a lead another of the campaign's senders POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Only a lead nobody has contacted yet moves (no invite or message sent, none that may have gone out, no connection or pending invite with its sender): a contacted lead stays with the sender it knows (409 `lead_already_contacted`). 409 `lead_step_in_flight` while a sender performs its step, `lead_ended` for a finished lead. A failed lead is retried on the new sender (see retry).
One action on every lead matching the filters, in the background POST
**Access:** an API key (or an org-wide key naming the workspace) with manage on `campaigns`. Applies `pause`, `resume`, `stop`, `remove` or `move` to every lead of the campaign that matches `filters` (all leads by default), page by page, each lead judged on its own like the in-request bulk. Answers 202 at once; poll `GET …/bulk-jobs/{jobId}`. `jobId` is an idempotency key: the same id never starts a second job (202 `started: false`). Leads enrolled after the job began are out of scope. 429 `rate_limited` after 10 starts a minute in the workspace; 503 while the engine is unreachable.