Retrieve aggregated usage statistics for events
Enter your API key in the format x-api-key <api-key>*
Request body
COUNT, SUM, AVG, COUNT_UNIQUE, LATEST, SUM_WITH_MULTIPLIER, MAX, WEIGHTED_SUM "api_request"
BillingAnchor enables custom monthly billing periods for usage aggregation.
When to use:
When NOT to use:
Example values:
"2024-03-05T14:30:45.123456789Z"
MINUTE, 15MIN, 30MIN, HOUR, 3HOUR, 6HOUR, 12HOUR, DAY, WEEK, MONTH, MONTH "customer456"
"2024-03-20T00:00:00Z"
"customer456"
GroupByProperty is the property name in event.properties to group by before aggregating. When set, aggregation is applied per unique value of this property within each bucket, then the per-group results are summed to produce the bucket total.
will be empty/ignored in case of COUNT
"request_size"
"2024-03-13T00:00:00Z"
MINUTE, 15MIN, 30MIN, HOUR, 3HOUR, 6HOUR, 12HOUR, DAY, WEEK, MONTH, MONTH