Skip to content

HighLevel: Search Object Records

HighLevel objects.searchObjectRecords: arguments, response, policy and SDK examples.

← Objects operations · Get started

Operation gohighlevel.search_object_records

Provider route: POST /objects/{schemaKey}/records/search. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/gohighlevel with npm, or alter-sdk-gohighlevel with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HighLevelIntegration } from "@alter-ai/gohighlevel";
async function execute(input: Parameters<HighLevelIntegration["objects"]["searchObjectRecords"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HighLevelIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.objects.searchObjectRecords(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_gohighlevel import HighLevelIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HighLevelIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.objects.search_object_records(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.schemaKeystringRequired within parent
bodyModelRequired within parentExpand Search Object Records — request body — body

Referenced models: Search Object Records — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Search Object Records — response body

Referenced models: Search Object Records — response body

Search Object Records — response body
FieldTypePresenceDescription and constraints
$objectRoot
recordsarrayOptionalRecords
records[]ModelEach itemExpand Search Object Records — response body — records item
totalJSONRequired within parent
total (anyOf 1)numberAlternativeTotal Number of records
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Search Object Records — response body — records item

Search Object Records — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
locationIdstringRequired within parentLocation Id
pagenumberRequired within parentPage
pageLimitnumberRequired within parentPage Limit
querystringRequired within parentPass this query parameter to search using your searchable properties. For example, if you have a custom object called “Pets” and have configured “name” as a searchable property, you can pass name:Buddy to search for pets with the name “Buddy.”
searchAfterarrayRequired within parent
searchAfter[]stringEach item
Search Object Records — response body — records item
FieldTypePresenceDescription and constraints
$objectRoot
createdAtstringRequired within parentDate and time when the object was added
Format: date-time
createdByJSONRequired within parentCreated By Meta
createdBy (allOf 1)ModelAll variants applyExpand Search Object Records — response body — records item created By channel, created At, source, source Id
followersarrayRequired within parentFollower (User's ids). Limited to 10 and supported for custom objects for now
followers[]stringEach item
idstringRequired within parentid of the record
lastUpdatedByJSONRequired within parentLast Updated By Meta
lastUpdatedBy (allOf 1)ModelAll variants applyExpand Search Object Records — response body — records item created By channel, created At, source, source Id
locationIdstringRequired within parentLocation Id
objectIdstringRequired within parentObjectId Id
objectKeystringRequired within parentObjectId key
ownerarrayRequired within parentOwner (User's id). Limited to 1 for now . Only supported for custom objects for now
owner[]stringEach item
propertiesstringRequired within parentProperties of the record
searchAfterarrayRequired within parent
searchAfter[]JSONEach item
searchAfter[] (anyOf 1)numberAlternative
searchAfter[] (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedAtstringRequired within parentDate and time when the object was last updated
Format: date-time

Referenced models: Search Object Records — response body — records item created By channel, created At, source, source Id

Search Object Records — response body — records item created By channel, created At, source, source Id
FieldTypePresenceDescription and constraints
$objectRoot
channelstringRequired within parentCreation Channel
createdAtstringRequired within parentCreated At
sourcestringRequired within parentFrom where the record was created
sourceIdstringRequired within parentUser/Resource Id

SDK function policy ID: gohighlevel.search_object_records. Catalog operation: search-object-records. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["objects/record.readonly"]

Pinned headers: {"Version": "v3"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.