HubSpot · api · fg-0387

HubSpot CRM search returns 400 once paging passes 10,000 results

If you see HTTP 400 when after is 10000 or higher, the cause and the fix for HubSpot are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
HTTP 400 when after is 10000 or higherFull sync stops at exactly 10,000 recordsSame query works again from after=0
Cause
Every CRM search query is capped at 10,000 total results, and asking for a page past that cap is rejected. The after cursor cannot walk further no matter how many records match.
Fix
Page with a keyset instead of the cursor: sort ascending by hs_object_id, remember the last id, and start a new query with hs_object_id GT that id whenever you near the cap. For full exports use the list or batch read endpoints instead of search.
Apply
{"filterGroups":[{"filters":[{"propertyName":"hs_object_id","operator":"GT","value":"<lastId>"}]}],"sorts":[{"propertyName":"hs_object_id","direction":"ASCENDING"}],"limit":200}
Affected
HubSpot CRM search endpoints (v3 and date-based 2026-09), all tiers, as of 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