Skip to main content
POST
Pauses or resumes many leads of one campaign with one request, instead of one request per lead. Each lead is handled exactly as Pause Lead or Resume Lead would handle it, one after another, and the response tells you which leads were updated and which failed.
A lead that fails does not stop the others. Once the request body is valid the call returns 200; check ok and the failed list rather than the HTTP status alone.

Path Parameters

number
required
The campaign ID containing the leads (positive whole number)

Query Parameters

string
required
Your SmartLead API key

Request Body

string
required
What to do with every lead in lead_ids: pause or resume (lower case).
array
required
Lead ids (positive integers, no duplicates), 1 to 100. For more leads, send several requests.
number
Used by resume only; ignored by pause. Number of days (0 or more) to wait before sending the next email, applied to every lead in the request. If omitted or null, each lead uses the default delay from the sequence configuration. The next email timestamp is calculated as last_sent_time + delay_days.

Response Fields

boolean
true when every lead was updated; false when at least one lead is in failed.
string
The action you sent: pause or resume.
array
The lead ids that were paused or resumed, in the order you sent them.
array
One entry per lead that was not updated.

Response Codes

Success
The request was processed. Check ok, updated and failed for the result per lead.
Bad Request
The request is not valid: action is missing or not pause / resume, lead_ids is missing, empty, has more than 100 ids, has duplicates or ids that are not positive integers, resume_lead_with_delay_days is negative or not a number, or the body has an unknown key. Nothing is changed.
Unauthorized
Invalid or missing API key
Internal Server Error
The request as a whole failed unexpectedly. Some leads may already have been updated; check them with Get Campaign Leads before retrying.

Behavior Notes

  • Leads are processed one after another in the order you send them, so a request with 100 leads takes longer than a one-lead call. Allow a client timeout of at least 60 seconds.
  • pause behaves like Pause Lead for each lead: status changes to PAUSED, the next scheduled time is cleared and drafted emails are marked as STOPPED.
  • resume behaves like Resume Lead for each lead: status changes to INPROGRESS and the next email is scheduled from the delay. A lead on the last sequence step cannot be resumed and is returned in failed.
  • As with Pause Lead, pause does not check that a lead id belongs to the campaign: an id that is not in the campaign changes nothing and is still returned in updated. resume does check, and returns such an id in failed with LEAD_NOT_IN_CAMPAIGN.
  • If the campaign does not exist or your API key cannot access it, nothing is changed and every lead is returned in failed with status_code 404.
  • One call counts as one request against your rate limit, whatever the number of leads.