HubSpot · api · fg-0394

HubSpot search fails with VALIDATION_ERROR when a query has too many filters

If you see 400 VALIDATION_ERROR from the search endpoint, the cause and the fix for HubSpot are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
400 VALIDATION_ERROR from the search endpointQuery worked until one more filter was addedError mentions filterGroups or filters count
Cause
A search request allows at most five filterGroups, six filters per group, and 18 filters in total, and accepts only one sort. Older guidance quoted lower limits, so generated code is often built against the wrong ceiling.
Fix
Collapse equality filters on one property into a single IN filter, split very wide queries into several requests and merge the results, and keep one sort rule.
Apply
{"propertyName":"dealstage","operator":"IN","values":["appointmentscheduled","qualifiedtobuy","closedwon"]}
Affected
HubSpot CRM search endpoints, limits as documented 2026-10
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun