You can query usage for a single feature or multiple features in one request by passing an array of feature IDs.
The response returns a list of objects. Each object includes a
period
timestamp and one key per requested feature ID with its usage value.Authorizations
Use your Autumn Secret Key as the Bearer token.
Body
application/json
Your unique identifier for the customer
Feature ID or array of feature IDs to query usage for
Time range for the query. Defaults to "30d" if not provided. last_cycle
returns usage since the last billing cycle.
Available options:
24h
, 7d
, 30d
, 90d
, last_cycle
Response
200 - application/json
Usage data for the specified features
List of usage data points for each time period