Get all persons

GET {{baseUrl}}/persons?filter_id=<integer>&ids=<string>&owner_id=<integer>&org_id=<integer>&updated_since=<string>&updated_until=<string>&sort_by=id&sort_direction=asc&include_fields=<string>&custom_fields=<string>&limit=<integer>&cursor=<string>

Returns data about all persons. Fields ims, postal_address, notes, birthday, and job_title are only included if contact sync is enabled for the company.

Request Params

KeyDatatypeRequiredDescription
filter_idstringIf supplied, only persons matching the specified filter are returned
idsstringOptional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response.
owner_idstringIf supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored.
org_idstringIf supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored.
updated_sincestringIf set, only persons with an update_time later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
updated_untilstringIf set, only persons with an update_time earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z.
sort_bystringThe field to sort by. Supported fields: id, update_time, add_time.
sort_directionstringThe sorting direction. Supported values: asc, desc.
include_fieldsstringOptional comma separated string array of additional fields to include. marketing_status and doi_status can only be included if the company has marketing app enabled.
custom_fieldsstringOptional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed.
limitstringFor pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;name&quot;:&quot;Person Name&quot;,&quot;first_name&quot;:&quot;Person&quot;,&quot;last_name&quot;:&quot;Name&quot;,&quot;owner_id&quot;:1,&quot;org_id&quot;:1,&quot;add_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;update_time&quot;:&quot;2021-01-01T00:00:00Z&quot;,&quot;emails&quot;:[{&quot;value&quot;:&quot;email1@email.com&quot;,&quot;primary&quot;:true,&quot;label&quot;:&quot;work&quot;},{&quot;value&quot;:&quot;email2@email.com&quot;,&quot;primary&quot;:false,&quot;label&quot;:&quot;home&quot;}],&quot;phones&quot;:[{&quot;value&quot;:&quot;12345&quot;,&quot;primary&quot;:true,&quot;label&quot;:&quot;work&quot;},{&quot;value&quot;:&quot;54321&quot;,&quot;primary&quot;:false,&quot;label&quot;:&quot;home&quot;}],&quot;is_deleted&quot;:false,&quot;visible_to&quot;:7,&quot;label_ids&quot;:[1,2,3],&quot;picture_id&quot;:1,&quot;custom_fields&quot;:{},&quot;notes&quot;:&quot;Notes from contact sync&quot;,&quot;im&quot;:[{&quot;value&quot;:&quot;skypeusername&quot;,&quot;primary&quot;:true,&quot;label&quot;:&quot;skype&quot;},{&quot;value&quot;:&quot;whatsappusername&quot;,&quot;primary&quot;:false,&quot;label&quot;:&quot;whatsapp&quot;}],&quot;birthday&quot;:&quot;2000-12-31&quot;,&quot;job_title&quot;:&quot;Manager&quot;,&quot;postal_address&quot;:{&quot;value&quot;:&quot;123 Main St&quot;,&quot;country&quot;:&quot;USA&quot;,&quot;admin_area_level_1&quot;:&quot;CA&quot;,&quot;admin_area_level_2&quot;:&quot;Santa Clara&quot;,&quot;locality&quot;:&quot;Sunnyvale&quot;,&quot;sublocality&quot;:&quot;Downtown&quot;,&quot;route&quot;:&quot;Main St&quot;,&quot;street_number&quot;:&quot;123&quot;,&quot;postal_code&quot;:&quot;94085&quot;}}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}