Account Reporter v2
Get key-level and account-level usage metrics for the current or any past month.
What this endpoint does
Returns usage counters and remaining balance for both the authenticated API key (key_usage) and the entire account (account_usage). The two objects are identical if you only have one key. If you have multiple keys, account_usage reflects the sum across all keys.
Query parameter
Passmonth in YYYY-MM format to get usage for a specific month. If omitted, returns the current month.
Usage fields
Bothkey_usage and account_usage return the same set of counters:
Authorizations
To access the API, provide your API key in x-api-key.
Query Parameters
Optional month in YYYY-MM format used to scope usage counters.
7^\d{4}-\d{2}$Response
Success. Returns usage for the authenticated key and account. Master API keys also receive unit prices in price.
Account reporter response containing key-level and account-level usage metrics. The optional price object is included only for master API keys.
Usage counters for a given time window.
Usage counters for a given time window.
23.34
Unit prices in USD keyed by their corresponding Account Reporter usage field, derived from the latest payment row. Present only when the request is authenticated with a master API key. May be an empty object when no payment row exists.