Contact Search API 400 Bad Request when fetching records after 10000

MadhuManne
Member

 

POST /crm/v3/objects/contacts/search

 

{"filterGroups":[{"filters":[{"propertyName":"lastmodifieddate","operator":"GTE","value":1622505600000}]}],"properties":["email","firstname","phone","lastname","jobtitle","city","state","country","hs_lead_status","company","hubspot_owner_id","linkedin_url","lead_type","hs_additional_emails","mobilephone"],"limit":100,"after":10000}

 

Status Code - 400 Bad Request

{"status":"error","message":"There was a problem with the request.","correlationId":"2d347b55-f890-449d-a7af-bf56dd11983a"}

 

0 Upvotes
2 Replies 2
webdew
Top Contributor | Diamond Partner

Hi @MadhuManne ,

Hope it will work for you, please use below json for search api :

{
"filterGroups":[
{
"filters":[
{
"propertyName": "lastmodifieddate",
"operator": "GTE",
"value": 1622505600000
}
]
}
],
"limit": 100
}


Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards. 



MadhuManne
Member

Hi,

We have started with this as the first API call and when I have to navigate to the next pages I'm adding the "after" parameter. After reaching 10000 records the API is giving 400 Bad Request. 

0 Upvotes