Skip to main content
POST
Credit cost: Free. It returns contact IDs only. Fetching them with Fetch Contacts spends credits as usual.
This endpoint requires your API key: pass it as the api_key query parameter, or in an X-API-Key or Authorization: Bearer header (see Authentication).
Use this for account-based outreach, when you want one (or a few) contacts per company instead of everyone who matches.
  1. Run Search Contacts and keep its filter_id.
  2. Call this endpoint with the same filters as searchFilters, maxPerCompany: 1 and the number of contacts you want as limit.
  3. Call Fetch Contacts with filter_id and id set to selected_lead_ids. Use Estimate Fetch Cost first to check the cost.

Request Body

object
required
The filters, exactly as you sent them to Search Contacts.
number
required
Most contacts to keep per company, 1 to 1000. 1 gives one lead per company.
number
Stop once this many contacts are selected. Omit to select across the whole result.
boolean
Leave out contacts you already own. Defaults to true when limit is set, else false.
object
Which contacts of a company come first: {"field": "relevance" | "email_deliverability" | "last_modified", "order": "asc" | "desc"}. Default relevance.

Response Fields

All fields are under data.
string[]
Contact IDs to send to Fetch Contacts as id
number
Number of IDs selected
number
Companies the selection covers
number
Companies that had more matches than maxPerCompany
number
Matches left out by the cap
boolean
true when the scan stopped before the end of the result

Response Codes

Success
Selection returned
Bad Request
Missing searchFilters or maxPerCompany, or filters that cannot be served
Unauthorized
Missing or invalid API key