Get Spending Caps
Get current spending cap configuration.
Returns spending cap settings including budget limits, alert thresholds, and current spending status.
Requirements:
- Read permission
Example:
response = await client.get("/v1/organizations/billing/spending-caps")
print(f"Monthly budget: ${response['monthly_spending_budget_usd']}")
print(f"Hard cap enabled: {response['hard_cap_enabled']}")
print(f"Current spending: ${response['current_spending_usd']}")
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
Response with spending cap configuration.
Current spending in current billing cycle (cents)
23450
Current spending in current billing cycle (USD)
234.5
Soft spending limit in USD cents (null = unlimited)
10000
Soft spending limit in USD
100
Percentage thresholds for spending alerts
[50, 75, 90, 100]Whether spending alerts are enabled
Alert thresholds triggered in current billing cycle
[50, 75]Hard spending limit in USD cents (null = no hard cap)
50000
Hard spending limit in USD
500
Whether hard spending cap is enforced
Percentage of budget used (null if no budget set)
46.9

