Lists
Copy leads to another list
/lists/{listId}/leads/copyCopies people from this list into another: they stay here and join that list too. Send up to 1,000 leads, or all: true for everyone in the list.
Try itSend a real request with your API key
Path
listIdstringRequiredThe list they’re in now.
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
toListIdstringRequiredThe list they go to.
leadsarray of LeadReference or nullUp 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.
allboolean or nulltrue: everyone in the list. One of
true.
Answer
200 OK What was copied.
dataMoveLeadsResultRequiredInside it
fromobjectRequiredInside it
idstringRequirednamestringRequired
toobjectRequiredInside it
idstringRequirednamestringRequired
movedintegerMove: how many left this list for the other.
copiedintegerCopy: how many are in both lists now.
alreadyInListintegerRequiredOf those, how many were in the other list already.
skippedintegerRequiredresultsarray of MemberResultOne per lead sent; left out for all: true.
Each 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.