Get contacts filtering by created date or last modified date v3

Hi, I’m trying to retrieve all contacts updated or created today. I’m using filterGroups to achieve that but I have not been able to get this happen. My url is: https://api.hubapi.com/crm/v3/objects/contacts?limit=100

And my body request:

{
 "filterGroups": [
 {
 "filters": [
 {
 "propertyName": "createdate",
 "operator": "GTE",
 "value": "1704700800000"
 },
 {
 "propertyName": "lastmodifieddate",
 "operator": "GTE",
 "value": "1704700800000"
 }
 ]
 }
 ],
 "sorts": [
 {
 "propertyName": "createdate",
 "direction": "DESCENDING"
 }
 ]
}

@AVM - forgive me for the comment, but shouldn’t the API be

https://api.hubapi.com/crm/v3/objects/contacts/search?

And I think you will find that, to get the OR functionality, you need to divide your filter terms into two Filter groups rather than one.

Hope I haven’t missed something - best of luck!

Steve

Yeah it’s working but with these date format:

“2024-02-06T00:00:00.000Z”

Thanks.