Account Reporter v2
Review API usage by key and account, current balance, and master-key unit prices.
Choose a reporting period
month with start_date or end_date. A date range requires both dates, with the end after the start.
The start must be within the past 12 months, the interval cannot exceed 12 months, and the interval cannot be entirely in the future.
Read the response
key_usagecontains counters for the authenticated key.account_usagecontains counters across the account’s keys.balance_remaining_usdis the current account balance at the top level of the response.pricecontains unit prices from the latest payment and is returned only for master API keys.
Reporting boundaries
Usage is grouped by the UTC date it was recorded. This endpoint does not provide reporting within a day or guarantee that usage is assigned to the original request’s start time. For an individual job’s cost, use inline usage. To create separate keys for teams or integrations, see API key management.Query Parameters
Optional interval start date in YYYY-MM-DD format, UTC, inclusive. Must be provided together with end_date, and is mutually exclusive with month. Must not be more than 12 months before the current UTC date, and must not be entirely in the future (at least one day of the interval must be today or earlier).
10^\d{4}-\d{2}-\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.
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. These are current prices, not the actual historical prices in effect during the requested month or start_date/end_date interval.