Lists
Take leads off a list
/lists/{listId}/leads/removeTakes up to 1,000 people off a list, as the app’s Remove from list does. They stay in your leads, and a campaign that already has them keeps going: stop them in the campaign to end their outreach (the result notes who that applies to). Repeating the call is safe.
Try itSend a real request with your API key
Path
listIdstringRequiredThe list.
Headers
Idempotency-KeystringAny unique value up to 255 characters, like a UUID. The request runs once; repeats within 24 hours get the first answer, with Idempotent-Replayed: true. Up to 255 characters.
Body
leadsarray of LeadReferenceRequiredUp to 1,000.
Each item
leadIdstring or nullUp to 180 characters.
idstring or nullThe same as leadId. Up to 180 characters.
linkedinUrlstring or nullUp to 1,000 characters.
emailstring · email or nullUp to 254 characters.
Answer
200 OK One result per lead sent.
dataRemoveLeadsResultRequiredInside it
listobjectRequiredInside it
idstringRequirednamestringRequired
removedintegerRequiredskippedintegerRequiredresultsarray of MemberResultRequiredEach item
indexintegerRequiredleadIdstring or nullRequiredstatusstringRequiredOne of
removed,moved,copied,skipped.reasonstringOne of
not_in_list,not_found,ambiguous_email,duplicate_in_request,invalid_request.messagestringnotestringSet when the person is still in a campaign that uses the list: taking them off the list doesn’t stop it.
Errors
- 400 Bad request
invalid_requestinvalid_jsonduplicate_in_request - 401 Unauthorized
unauthorized - 404 Not found
not_foundnot_in_campaign - 409 Conflict
conflictidempotency_in_progressworkspace_busycampaign_finishedcampaign_without_listtag_limitlead_has_historycampaign_not_launchedcampaign_cannot_resumeambiguous_email - 413 Too large
too_large - 415 Wrong content type
unsupported_media_type - 422 Can’t process
idempotency_key_reused - 429 Too many requests
rate_limited - 500 Server error
server_error
Every error has the same shape. See Errors.