Skip to main content
PUT
Set or clear the organisation's daily AI caps (a key not sent is kept)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
daily_chat_usd_cap
number | null

Null clears the money cap back to the plan default.

daily_token_soft_cap
integer | null

Past it every unattended run degrades to the quick tier for the rest of the UTC day; null clears.

daily_token_hard_cap
integer | null

Past it new unattended runs are refused until midnight UTC; null clears. Never below the soft cap.

Response

Successful Response

daily_chat_usd_cap
number | null
required
plan_default_usd
number | null
required
effective_usd
number | null
required
spent_today_usd
number
required
daily_token_soft_cap
integer | null
required
daily_token_hard_cap
integer | null
required
tokens_today
integer | null
required

Null when today's usage could not be read.

token_budget_state
enum<string>
required
Available options:
unlimited,
under,
soft,
hard,
unknown
monthly_free_usd
number | null
required
monthly_plan_default_usd
number | null
required
monthly_override_usd
number | null
required
monthly_platform_spent_usd
number
required
monthly_resets_at
string
required
monthly_exhausted
boolean
required
allowance_exempt
boolean
required
byok_configured
boolean
required