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.
Show Monthly spending fields
integer
Year of this month.
integer
Month number (1–12).
string
Total spending for the month (negative value representing credits consumed).