Billing
Get Monthly Spending
Get monthly spending rollups for a year
GET
Get monthly spending summaries for a calendar year. Use this endpoint to answer how much you used per month without fetching individual usage line items.
Returns all 12 months, including months with zero spending.
Headers
API key or Cognito JWT:
Bearer sk-xxxxxxQuery Parameters
Year to retrieve spending for. Defaults to the current year.
How spending is calculated:
gross— Count usage charges onlynet— Include refunds in the calculation
Response
Year covered by this response.
Spending calculation mode (
gross or net).Twelve months of spending data, one entry per calendar month.
Total spending for the year.
Currency code (USD).

