useUsageEvents hook lists usage events for a single feature using your backend route.
By default it calls GET /api/priceos/v1/usage-events and requests the current period.
- Typed
- Untyped
Parameters
Feature key to list events for (typed to your tracked limit feature keys when using generated types).
Usage period to query. Defaults to
"current".
Ignored when customRange is provided.Optional custom Unix-ms range.
start and end are required when provided.Optional SWR Infinite config for pagination/revalidation behavior.