Skip to main content
POST
Removes the given leads from the given campaigns in one transaction. Send "dry_run": true first: it returns the same counts and writes nothing.
When a lead is left in none of your campaigns after the removal, the lead itself is deleted too, with its list and tag links (main account key). With a client API key, only that client’s access to the lead is removed; the lead record is never deleted. Check summary.lead_rows_deleted in a dry run before you run it for real.

Query Parameters

string
required
Your SmartLead API key

Request Body

array
required
Lead ids (positive integers), 1 to 2000. These are lead ids, not campaign-lead mapping ids.
array
required
Campaign ids (positive integers) to remove the leads from, 1 to 100.
boolean
default:"false"
true returns the counts that a real run would produce and changes nothing.

Response Fields

array
Lead ids found in the given campaigns
array
Lead ids that are not in any of the given campaigns (nothing is done to them)
number
Lead-in-campaign rows removed
number
Scheduled (not yet sent) emails that were stopped
number
Leads deleted entirely because they are no longer in any of your campaigns
string
Request id. Sent back from your X-Request-Id header when you set one. Quote it to support.