Search persons

GET {{baseUrl}}/persons/search?term=<string>&fields=<string>&exact_match=<boolean>&organization_id=<integer>&include_fields=<string>&start=0&limit=<integer>

Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID.

Request Params

KeyDatatypeRequiredDescription
termstring(Required) 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.
fieldsstringA comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: address, varchar, text, varchar_auto, double, monetary and phone. Read more about searching by custom fields <a href="https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields" target="_blank" rel="noopener noreferrer">here</a>.
exact_matchstringWhen enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
organization_idstringWill filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000.
include_fieldsstringSupports including optional fields in the results which are not provided by default
startnumberPagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter.
limitstringItems shown per page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;items&quot;:[{&quot;result_score&quot;:0.5092,&quot;item&quot;:{&quot;id&quot;:1,&quot;type&quot;:&quot;person&quot;,&quot;name&quot;:&quot;Jane Doe&quot;,&quot;phones&quot;:[&quot;+372 555555555&quot;],&quot;emails&quot;:[&quot;jane@pipedrive.com&quot;],&quot;visible_to&quot;:3,&quot;owner&quot;:{&quot;id&quot;:1},&quot;organization&quot;:{&quot;id&quot;:1,&quot;name&quot;:&quot;Organization name&quot;,&quot;address&quot;:null},&quot;custom_fields&quot;:[],&quot;notes&quot;:[]}}]},&quot;additional_data&quot;:{&quot;pagination&quot;:{&quot;start&quot;:0,&quot;limit&quot;:100,&quot;more_items_in_collection&quot;:false}}}