Skip to main content
POST
Send profileIds to push people you picked: the _id of each result of Search People database, up to 1,000 per call. Send filters to push every person a search matches: they take the same filter objects as the search, and their ids come from GET Filters. Send one of the two: both at once answer 400.A filters push reads at most 10,000 people. Free-trial and freemium teams are capped at one page (100 people). When the search matches more, the response carries matchedTotal: narrow the search to push the rest. The notInCrm filter cannot be pushed as a search; push its results with profileIds instead.
A filters push spends one search of your team’s 24h search quota, whatever the number of people pushed. A profileIds push spends none. enrichFeatures costs credits for each contact enriched: see lemlist API credits.
A profileIds push answers once every contact is written. A filters push runs in the background: it answers 202 with an asyncOperationId, and Get an async operation returns the push summary once it ends. One filters push per user runs at a time; a second one answers 409 and spends no search. People are de-duplicated by LinkedIn profile, so pushing someone twice never creates a second contact.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

The people to push: profileIds or filters, plus an optional enrichment and target list

profileIds
string[]

People Database people to push, 1 to 1,000 per call: the _id of each result of POST /database/people. Use it for a hand-picked selection; it spends no search. More than 1,000 ids are refused with a 400. Not combinable with filters.

Required array length: 1 - 1000 elements
filters
object[]

A People Database search, with the same filter objects as POST /database/people (filterId, in, out). Every person the search matches is pushed, up to the cap described above, and the push spends one search of the 24h quota. Filter ids come from GET /database/filters. The notInCrm filter is refused with a 400: push the results of such a search with profileIds instead. Not combinable with profileIds.

Minimum array length: 1
enrichFeatures
enum<string>[]

Enrichments to request on the pushed contacts: find_email, find_phone or both. They cost credits for each contact enriched, see lemlist API credits. Their results are not part of this response. Refused with a 403 linkedin-not-linked when the API key's user cannot spend enrichment credits, for example a free-trial user without a connected LinkedIn account.

Available options:
find_email,
find_phone
listId
string

Static contact list to add the pushed contacts to (clt_xxx format), from Get contact lists. Omit it to push into all contacts only. A dynamic list is refused with a 400.

Pattern: ^clt_[a-zA-Z0-9]+$
Example:

"clt_ExAmPlEA1b2C3d4E5"

Response

Push summary of a profileIds push

message
string
required

Human-readable summary of the push. When the search matched more people than the cap, it says how many were pushed out of how many matched.

count
integer
required

Contacts written by the push: insertedCount + updatedCount + unchangedCount. It can be lower than the number of people sent: a profile that cannot be imported is skipped, and so is a person not yet in your contacts when the API key's user lacks the "Create contacts" permission.

insertedCount
integer
required

Contacts created

updatedCount
integer
required

Existing contacts updated with the People Database data

unchangedCount
integer
required

Existing contacts matched without any change

matchedTotal
integer

On a filters push only: how many people the search matched. When it is larger than the cap, only the first people up to the cap were pushed; narrow the search to push the rest.