v1
latestOpenAPI 3.1.02026-07-2618690613.4 KBAI Credit Controls
Update AI credit controls
<Note> **Organization Admin** permissions are required for this endpoint. </Note>Update the organization's AI credit controls: the downgrade and shutoff thresholds and the default per-user credit limit. All fields are optional, but at least one must be provided:
- Omit a field to leave it unchanged
- Send null to turn that control off (for userDefaultCredits: unlimited by default)
- Send a non-negative number to set it
patch/v1/ai/credit-controls
Request body
Example request
{
"downgradeCredits": 800,
"shutoffCredits": 1200,
"userDefaultCredits": 100
}Response
Thresholds updated. Returns the full current state.
Example response
{
"accountCreditLimit": 2000,
"creditsUsed": 450,
"downgradeCredits": 800,
"shutoffCredits": 1200,
"userDefaultCredits": 100
}