HubSpot · api · fg-0394
HubSpot search fails with VALIDATION_ERROR when a query has too many filters
400 VALIDATION_ERROR from the search endpoint
Verified 2026-10-15 · Confirmed by 0 builders · Trust 50/100
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"]}Affects: HubSpot CRM search endpoints, limits as documented 2026-10
Sources
- https://developers.hubspot.com/docs/api-reference/search/guide
- https://github.com/HubSpot/hubspot-api-nodejs/issues/128
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp