GoHighLevel Contacts API

Search Contacts Advanced

POST/contacts/search

POST /contacts/search Search contacts based on combinations of advanced filters. Documentation Link - https://doc.clickup.com/8631005/d/h/87cpx-158396/6e629989abe7fad It takes 7 body fields, requires the contacts.readonly scope and authenticates with a sub-account (location) token.

Request and authentication

Method
POST
Full URL
https://services.leadconnectorhq.com/contacts/search
Scopes
contacts.readonly
Token type
Sub-account (location) token
Accepted auth
OAuth Access Token, Private Integration Token
API version header
Version: 2021-07-28
Schema verified
7 November 2026

Notes from the field

  • Always send `pageLimit` (1–500) in the body. `limit` is rejected, and a body without `pageLimit` returns 422. Keep page × pageLimit ≤ 10000; to go further, page with `searchAfter`.
  • Filter fields that work: `contactName`, `firstNameLowerCase`, `lastNameLowerCase`, `email`, `phone`, `tags`, `companyName`, `assignedTo`, `dateAdded` (operator `range`) and `customFields.<fieldId>` (plural; contact custom fields only). For first and last names, filter on `firstNameLowerCase` / `lastNameLowerCase` with a lowercased value: `firstName` / `lastName` are accepted but compare against the lowercase value, so `'Alex'` silently matches nothing. GHL rejects `name`, `fullName`, `full_name`, `customField.<id>`, a bare field id, `businessId`, `additionalEmails`, `lastActivityDate` and `attributionSource.*`.
  • There is no `in` operator: pass an array as the value of `eq` to match any of several values. Sort by `dateAdded` or `dateUpdated`.
  • For the contacts linked to a business, call contacts/get-contacts-by-business-id instead.
  • Don't OR many `contains` filters together: those searches time out. Use `eq` on exact values, or one `contains` per search and run the searches together with hylo_bulk_execute_ghl_api.

Request body

JSON body fields. Nested objects are shown indented under their parent.

NameTypeDescription
locationIdrequiredstring

Location ID to search in.

Example: 5DP41231LkQsiKESj6rh

pageLimitrequirednumber

Required. Number of contacts per page, at most 500. This endpoint has no limit field.

Example: 20

pagenumber

Page number for standard pagination. Standard pagination reaches at most 10,000 records in total (page x pageLimit); past that, use searchAfter. Don't send page together with searchAfter.

Example: 1

searchAfterarray

Cursor pagination: pass the searchAfter value returned on the last contact of the previous page. Required to read past 10,000 records. Don't send page with it.

Example: 10,ABC

querystring

Free-text search over the contact fields marked searchable in the location's Custom Fields settings. At most 75 characters.

Example: tom

filtersarray

Conditions to match; top-level entries are combined with AND. Each entry is either a condition {field, operator, value} or a group {group: "AND" | "OR", filters: [...]} whose filters are conditions or further groups.

Example: [object Object],[object Object]

sortarray

Sort order. Two criteria can be combined.

Example: [object Object]

Response fields

Top-level fields returned on a successful call.

NameTypeDescription
contactsarray—
totalnumber

Number of contacts that match.

Example request

Copy-paste ready. Swap YOUR_TOKEN for your access token or Private Integration Token.

curl -X POST 'https://services.leadconnectorhq.com/contacts/search' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
    "locationId": "5DP41231LkQsiKESj6rh",
    "pageLimit": 20
  }'

Skip the schema lookup

Hylo gives your AI agent this schema — and the other 53 documented here — without you looking anything up. Ask in plain English; it picks the endpoint, fills the body, and can run the call against your own sub-account.

More contacts endpoints