JavaScript
Usage
Get usage history
Retrieves historical usage data for a customer’s metered feature over time.
GET
JavaScript
Authorizations
Server API Key
Headers
Account ID — optional when authenticating with a user JWT (Bearer token); falls back to the user's first membership. Ignored for API-key auth.
Environment ID — required when authenticating with a user JWT (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the key).
Path Parameters
Customer id
Required string length:
1 - 255Pattern:
^[a-zA-Z0-9][a-zA-Z0-9_|.@-]*$Feature id
Required string length:
1 - 255Pattern:
^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$Query Parameters
Resource id
Required string length:
1 - 255Pattern:
^[a-zA-Z0-9][a-zA-Z0-9_|.-]*$The start date of the range
The end date of the range
Criteria by which to group the usage history
Maximum string length:
255Response
Usage history data points for the specified period.
Response object
Historical usage time series
