One action on every lead matching the filters, in the background
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.
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"filters?{ "status": [], "senderIds": [], "failureCodes": [], "search": ""}jobId?string^[A-Za-z0-9_-]{8,64}$Default Response
application/json- response
jobId*string^[A-Za-z0-9_-]{8,64}$started*booleancurl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/bulk-jobs' \ -H 'Content-Type: application/json' \ -d '{ "action": "pause"}'{ "jobId": "string", "started": true}One action on up to 200 selected leads POST
**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.
A bulk job's progress GET
**Access:** an API key (or an org-wide key naming the workspace) with view on `campaigns`. `state` is `running`, `canceling`, `completed`, `canceled`, `refused` (with `refusal`) or `failed`; `processed` of `total` leads were visited, `counts` split by outcome and `refusedByCode` by reason. 404 `bulk_job_not_found` for an unknown job or one of another campaign.