Get Many Companies
Retrieves companies from your CRM. Use idsOrDomains to fetch specific companies by ID or domain in a single request (max 100), or omit it to get a paginated list of all companies.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
Comma-separated list of company IDs or domains to fetch. When provided, returns only matching companies (no pagination). Each value is classified as a company ID (e.g. cpn_xxx) or a domain (e.g. example.com). URLs are normalized automatically (e.g. https://example.com/path → example.com). Invalid values are silently skipped. Maximum 100 values.
Number of companies to skip for pagination. Defaults to 0. Ignored when idsOrDomains is provided.
x >= 0The field by which to sort. Currently, only 'createdAt' is supported.
createdAt The sort direction. Use 'desc' for descending order; any other value (or omission) will sort in ascending order.
asc, desc Search by company name (case insensitive)
Returns selected fields. Returns all fields if empty. Each field is separated by a comma (e.g., '_id,fields.name,domain')
Number of companies to retrieve. Default: 100. Maximum: 500
1 <= x <= 500Filter companies by their CRM sync state against the team's active CRM provider. Requires a CRM (Hubspot, Salesforce, or Pipedrive) to be connected — otherwise the request returns 400 NO_CRM_CONNECTED. Common values:
synced— the company has a CRM record and no sync errors.not_synced— the company has no CRM record yet.error— at least one sync error is currently raised.- A specific error reason (lowercase form), to filter by root cause:
unique_index_error_company,property_doesnt_exist,required_field_missing,company_already_exists_with_name,company_already_exists_with_linkedin_url.
For each returned company, see crmSync.errors[].metadata.alreadyExistingCompanyId to identify the lemlist company that already occupies the conflicting CRM record (useful to remap contacts before deleting the duplicate).
synced, not_synced, error, unique_index_error_company, property_doesnt_exist, required_field_missing, company_already_exists_with_name, company_already_exists_with_linkedin_url