TryzenAPI
Campaigns

One action on every lead matching the filters, in the background

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

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.

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"
filters?
Default
{  "status": [],  "senderIds": [],  "failureCodes": [],  "search": ""}
jobId?string
Match^[A-Za-z0-9_-]{8,64}$

Response Body

Default Response

application/json
  1. response
jobId*string
Match^[A-Za-z0-9_-]{8,64}$
started*boolean
Example Request
curl -X POST 'https://api.tryzen.co/v1/campaigns/string/leads/bulk-jobs' \  -H 'Content-Type: application/json' \  -d '{  "action": "pause"}'
Example Response
{  "jobId": "string",  "started": true}