Leads
Add leads to a list
/lists/{listId}/leadsAdds up to 1,000 people to a list, with the same body and results as adding to a campaign: leads to import by LinkedIn link, or people already saved by leadId or email. Campaigns that use the list take them on their next run.
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 objectsRequiredUp to 1,000.
Each item
One of these shapes:
Option 1
linkedinUrlstringRequiredThe person’s LinkedIn profile link. People are matched by it, so sending someone twice never adds them twice. Up to 1,000 characters.
emailstring · email or nullTheir email. It fills in an email Salesteam doesn’t have yet; a found or verified one stays. Up to 254 characters.
firstNamestring or nullUp to 100 characters.
lastNamestring or nullUp to 100 characters.
titlestring or nullUp to 200 characters.
companystring or nullUp to 200 characters.
locationstring or nullUp to 200 characters.
industrystring or nullUp to 100 characters.
headlinestring or nullUp to 300 characters.
customFieldsobject or nullValues for the workspace's custom fields, by field key or name (
service_wordorService word; see GET /custom-fields). A name the workspace doesn't have yet becomes a new field: a number makes a Number field, a list a Multi-select, anything else Text. Values are checked against the field's type: a URL needs a web address, a Number a number, a Date a date (saved as YYYY-MM-DD), and a choice that isn't an option yet is added. null removes a value; an empty string or an empty list leaves it as it is. Up to 50 per lead.
Option 2: Someone already in Salesteam, named by leadId (or id) or email alone: they join as they are, as the app’s Add to list does
leadIdstring or nullUp to 180 characters.
idstring or nullThe same as leadId. Up to 180 characters.
emailstring · email or nullUp to 254 characters.
Answer
200 OK One result per lead.
dataAddLeadsResultRequiredInside it
campaignobjectInside it
idstringRequirednamestringRequiredstatusstringRequireddraft: not launched. active: running. paused: stopped by the owner. completed: finished. One of
draft,active,paused,completed.
listobjectInside it
idstringRequiredThe list's ID.
namestringRequiredThe list's name.
addedintegerRequiredupdatedintegerRequiredskippedintegerRequiredresultsarray of LeadResultRequiredEach item
indexintegerRequiredPosition of this lead in the request.
linkedinUrlstring or nullRequiredstatusstringRequiredOne of
added,updated,skipped.leadIdstringThe lead’s ID. A person skipped because they’re already in Salesteam (already in the campaign or list, in another campaign, replied, suppressed) has theirs too. Missing only for rows that couldn’t be read or found.
reasonstringWhy it was skipped. One of
duplicate_in_request,already_in_campaign,already_in_list,in_another_campaign,replied,suppressed,blacklisted,not_found,ambiguous_email,invalid_linkedin_url,invalid_lead,invalid_custom_fields,not_available.messagestringWhy it was skipped, in words.
enrolledbooleanCampaign only: the person is in the campaign now.
notestringCampaign only: when the person will join, if not yet.
skipobjectCampaign only: why the campaign’s skip rules leave them out for now, as its launch review shows it. They stay in its list and join once the rule lets them.
Inside it
rulestringRequiredOne of
do_not_contact,excluded_list,in_campaign,conversation,not_interested,contacted,inmailed,cant_inmail.reasonstringRequiredIn words, like “Contacted 12 days ago”.
Errors
- 400 Bad request
invalid_requestinvalid_jsonduplicate_in_request - 401 Unauthorized
unauthorized - 402 Payment required
billing_hold - 404 Not found
not_foundnot_in_campaign - 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.