Search leads
Changed onSearches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href="https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID.
Request
- Base URLhttps://api.pipedrive.com/v1
- Auth
- API key in header x-api-token
- or OAuth 2Authorization code: https://oauth.pipedrive.com/oauth/authorizeToken URL: https://oauth.pipedrive.com/oauth/token scopes: leads:read, leads:full, search:read
Query parameters
The search term to look for. Minimum 2 characters (or 1 if using exact_match). Please note that the search term has to be URL encoded.
A comma-separated string array. The fields to perform the search from. Defaults to all of them.
When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000.
Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000.
Supports including optional fields in the results which are not provided by default
Pagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter.
Items shown per page
Response
Success
Changes
- breaking
removed the enum value
custom_fieldsfrom thequeryrequest parameterfields - breaking
removed the enum value
lead.was_seenfrom thequeryrequest parameterinclude_fields - breaking
removed the enum value
notesfrom thequeryrequest parameterfields - breaking
removed the enum value
titlefrom thequeryrequest parameterfields - breaking
for the
queryrequest parameterfields, the type changed fromstringtoarray - breaking
for the
queryrequest parameterinclude_fields, the type changed fromstringtoarray
- breaking
- breaking
removed the enum value
falsefrom thequeryrequest parameterexact_match - breaking
removed the enum value
truefrom thequeryrequest parameterexact_match
- breaking