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']}")
Documentation Index
Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Headers
Bearer token authentication using your API key. Format: 'Bearer sk_xxxxxxxxxxxxx'. You can create API keys in the Mixpeek dashboard under Organization Settings.
"Bearer YOUR_MIXPEEK_API_KEY"
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

