Hi
We are trying to use Web Analytics events API for fetching events per CRM object and found that we can’t filter events by time period using occuredAfter and occuredBefore parameters. No matter what values are passed the result is allways the same
Prerequisites:
- Contact CRM object with id = 401
- Custom Event airbyte_contact_custom_event
- Event is sent at 2023-11-24T23:23:27.710Z for the contact using the following API:
POST https://api.hubapi.com/events/v3/send
Body: {
“eventName”: “<prefix>_airbyte_contact_custom_event”,
“objectId”: “401”,
“properties”: {… standard properties}
}
Response: 204
How to reproduce the problem:
- Make a query with a time window specified before or after the date when the event occured 2023-11-24T23:23:27.710Z. This is an example of such a query: /events/v3/events?objectType=contact&objectId=401&occuredAfter=2023-11-25T00:00:00.000Z&occuredBefore=2023-11-26T00:00:00.000Z
Making any other time windows or trying to use timestamp instead of ISO8601 datetime string also has no effect.
Can someone help us understand what’s wrong with the API or what’s wrong with us using the API?
