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.
Documentation Index
Fetch the complete documentation index at: https://developer.lemlist.com/llms.txt
Use this file to discover all available pages before exploring further.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
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.
Page number to retrieve. Ignored when idsOrDomains is provided.
The 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: 100