Skip to main content
GET
Search Contacts
This is the v2 of Get Many Contacts. It addresses the same index as the Contacts page in the app, so anything you can filter on there, you can filter on here. Two tiers of filtering:
  • Flat query parameters for the common cases — listId=clt_..., notInAnyCampaign=true.
  • advancedFilters, a JSON tree, for everything else, including your team’s custom fields. List the available fields to discover them.

Filtering

The flat parameters are the v1 ones: search, email, listId, notInAnyCampaign, the company* filters, withPrimaryCompany, fieldRejectionReason and crmSyncStatus. crmIds looks contacts up by their record id in the connected CRM, and it cannot be combined with the other filters.

Advanced filters

advancedFilters takes a filter tree encoded as JSON. A node is either a group (connector and / or, plus children) or a condition (property, operator, value). The tree is bounded: depth 5, 50 conditions.
Every property must be a field returned by List Contact Filters, and every operator must be one that field’s type allows. An unknown field or a wrong operator is a 400 INVALID_FILTER — never a silently ignored condition.

CRM sync state

crmSyncStatus follows the same values as v1: synced, not_synced, error, searching, not_found, or one error reason in its lowercase form (invalid_email, contact_blocked_by_company, …). It requires a CRM to be connected — otherwise the request answers 400 NO_CRM_CONNECTED.

Sorting and pagination

sortBy accepts createdAt (default), fullName, lastContactedDate and company.name; sortOrder is asc or desc (default desc). Ties are broken by the contact id, so a page is stable across calls. Pagination is offset-based: limit (default 100, max 500) and offset (default 0). limit + offset must not exceed 10 000 — past that the request answers 400 PAGE_WINDOW_TOO_LARGE rather than silently serving another page.

Coming from v1

  • No idsOrEmails. v2 searches the index; it is not a lookup by id. Fetch a known contact with Get Contact.
  • crmIds is not a lookup either. It narrows the search, so the response keeps the paginated envelope and an id that matches nothing is simply left out.
  • The response is { data, total, limit, offset }, as v1’s list, with the same row keys. Dates are ISO-8601 instants.
  • No deep pages. v1 still serves pages past 10 000 rows, which some integrations rely on; v2 refuses them, so narrow with a filter instead of walking deeper.

Examples

Authorizations

Authorization
string
header
required

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

Query Parameters

Free-text search across the contact: name, email, phone, job title, location, industry, languages, skills, summary, LinkedIn URLs and the AI buying role. At least 2 characters, case-insensitive.

Required string length: 2 - 200
email
string<email>

Exact email address, matched among all the contact's emails. Takes precedence over search.

listId
string

Filter contacts by contact list ID (clt_xxx format). Can be combined with search or email, or used alone to list all contacts in a list. Get valid IDs from GET /contacts/lists.

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

When set to true, only returns contacts that are not part of any campaign (orphan contacts). Can be used alone or combined with other filters such as search, email, or listId.

companyId
string

Filter contacts by attached company ID (cpn_xxx format). Mutually exclusive with companyDomain, companyLinkedinUrl, companySalesnavUrl and withPrimaryCompany.

Pattern: ^cpn_[a-zA-Z0-9]+$
companyDomain
string

Filter contacts by their company's website domain, resolved to a companyId. If no company matches, the response is an empty page (total: 0). Mutually exclusive with the other company* filters.

companyLinkedinUrl
string

Filter contacts by their company's LinkedIn URL, resolved to a companyId. If no company matches, the response is an empty page (total: 0). Mutually exclusive with the other company* filters.

companySalesnavUrl
string

Filter contacts by their company's LinkedIn Sales Navigator URL, resolved to a companyId. If no company matches, the response is an empty page (total: 0). Mutually exclusive with the other company* filters.

withPrimaryCompany
boolean

When set to true, only returns contacts linked to a company; when set to false, only returns contacts without a company. Omit for no filter. Mutually exclusive with the company* filters.

fieldRejectionReason
enum<string>

Filter contacts to those carrying a field rejection with this reason — a value lemlist refused to write, prefixed by its origin (enrichment_* while enriching, crm_sync_* during CRM sync). Returns an empty page (total: 0) when no contact matches. Each row exposes the full detail under fieldRejections[].

Available options:
enrichment_duplicate_linkedin_url,
enrichment_duplicate_linkedin_url_sales_nav,
enrichment_duplicate_email,
crm_sync_duplicate_linkedin_url,
crm_sync_duplicate_linkedin_url_sales_nav,
crm_sync_invalid_linkedin_url,
crm_sync_invalid_url,
crm_sync_invalid_email,
crm_sync_invalid_phone,
crm_sync_linkedin_url_not_contact,
crm_sync_duplicate_contact_blocked,
crm_sync_duplicate_company_blocked,
crm_sync_company_data_rejected,
crm_sync_unsub_state_protected,
crm_sync_unsub_channel_empty,
crm_sync_value_oscillating,
crm_sync_owner_sync_loop,
crm_sync_unmapped_user,
crm_sync_value_incompatible,
crm_sync_unknown_error
crmSyncStatus
enum<string>

Filter contacts by their CRM sync state against the team's active CRM provider. Requires a CRM (Hubspot, Salesforce, Pipedrive or Attio) to be connected — otherwise the request answers 400 NO_CRM_CONNECTED. Values:

  • synced — the contact has a CRM record on the active CRM and no sync error.
  • not_synced — the contact has no CRM record on the active CRM.
  • searching — a CRM search (Search & connect, Create in CRM) is queued or running for the contact.
  • not_found — the last CRM search found no record for the contact.
  • error — at least one sync error is currently raised, whatever its reason.
  • A specific error reason (lowercase form), to filter by root cause, e.g. invalid_email or contact_blocked_by_company. The error, searching, not_found and reason states read every CRM the contact was synced with, so an error left by a previous CRM counts as error and keeps the contact out of synced.
Available options:
synced,
not_synced,
error,
searching,
not_found,
invalid_email,
property_doesnt_exist,
required_field_missing,
unique_index_error_contact,
contact_already_exists_with_name,
contact_already_exists_with_linkedin_url,
contact_already_exists_with_email,
contact_blocked_by_company,
contact_blocked_by_company_search,
contact_blocked_by_company_without_name,
contact_blocked_by_company_without_key,
contact_blocked_by_company_already_synced
crmIds
string

Record ids of contacts in the team's active CRM (HubSpot, Salesforce, Pipedrive or Attio), 1 to 100 values; for Salesforce, the 18-character Contact or Lead id; for Attio, the record UUID. Each contact found carries the matched id under crmSync.crmRecordId; an id that matches no contact is left out. Cannot be combined with the other filters, search and the company filters included.

advancedFilters
string

A filter tree encoded as JSON, addressing any field returned by GET /v2/contacts/filters. A node is either a group (connector and / or, plus children) or a condition (property, operator, value). Max depth 5, max 50 conditions. An unknown property or an operator the field does not allow answers 400 INVALID_FILTER.

sortBy
enum<string>
default:createdAt

Field the page is ordered by. Ties are broken by the contact id.

Available options:
createdAt,
fullName,
lastContactedDate,
company.name
sortOrder
enum<string>
default:desc

Sort direction.

Available options:
asc,
desc
limit
integer
default:100

Maximum number of contacts to return (1–500). Defaults to 100. limit + offset must not exceed 10000.

Required range: 1 <= x <= 500
offset
integer
default:0

Number of contacts to skip for pagination. Defaults to 0. limit + offset must not exceed 10000: narrow the filters or the search instead of walking deeper.

Required range: x >= 0

Response

Success

Paginated response of GET /v2/contacts.

data
object[]
required
total
integer
required

Total number of matching contacts

limit
integer
required

Page size used

offset
integer
required

Rows skipped