TypeScript
Events
Aggregate Events
POST
TypeScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Customer ID to aggregate events for
Feature ID(s) to aggregate events for
Property to group events by. If provided, each key in the response will be an object with distinct groups as the keys
Pattern:
^properties\..*Time range to aggregate events for. Either range or custom_range must be provided
Available options:
24h, 7d, 30d, 90d, last_cycle, 1bc, 3bc Size of the time bins to aggregate events for. Defaults to hour if range is 24h, otherwise day
Available options:
day, hour Custom time range to aggregate events for. If provided, range must not be provided

