Skip to main content
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

string
required
API key or Cognito JWT: Bearer sk-xxxxxx

Query Parameters

integer
Year to retrieve spending for. Defaults to the current year.
string
default:"gross"
How spending is calculated:
  • gross — Count usage charges only
  • net — Include refunds in the calculation

Response

integer
Year covered by this response.
string
Spending calculation mode (gross or net).
array
Twelve months of spending data, one entry per calendar month.
string
Total spending for the year.
string
Currency code (USD).
Use Get Monthly Spending for charts and dashboards. Use List Usage when you need per-request detail.