Organization Billing
Get Spending Caps
Changed onGet 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']}")
get/v1/organizations/billing/spending-caps
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/organizations/billing/spending-caps
- Auth: HTTP bearer
Response
Successful Response
Example response
{
"monthly_spending_budget": 10000,
"monthly_spending_budget_usd": 100,
"spending_alert_thresholds": [
50,
75,
90,
100
],
"spending_alerts_sent": [
50,
75
],
"hard_spending_cap": 50000,
"hard_spending_cap_usd": 500,
"current_spending_cents": 23450,
"current_spending_usd": 234.5,
"budget_percentage_used": 46.9
}Changes
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning
- info
the endpoint scheme security
BearerAuthwas added to the API
- info