Python (SDK)
Budgets
Set a apikey budget
Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.
PUT
Python (SDK)
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Path Parameters
Minimum string length:
1Body
application/json
Available options:
daily, weekly, monthly Available options:
cost, tokens Limit in major units: currency amount for cost, token count for tokens
Minimum array length:
1cluster = operator ceiling (org-admin read-only); org = self-budget
Available options:
cluster, org Minimum string length:
1Response
200 - application/json
OK
Available options:
org, apikey Available options:
cluster, org Available options:
daily, weekly, monthly Available options:
cost, tokens