AI
Get AI credit controls
Changed onGet the organization's AI credit controls: the downgrade and shutoff thresholds, the default per-user and per-entity-group credit limits, the default per-user daily credit limit (userDefaultDailyCredits, only when per-user daily limits are enabled), plus read-only context (the credit limit, usage so far this billing period, and the period bounds). This is the API mirror of the AI Hub credit controls page and requires the same AI-admin permission.
get/api/v1/ai/credit-controls
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/ai/credit-controls
- AuthHTTP bearer
Response
Current credit controls. Thresholds are null when the corresponding control is off.
Example response
{
"accountCreditLimit": 2000,
"creditsUsed": 450,
"downgradeCredits": 800,
"entityGroupDefaultCredits": 100,
"shutoffCredits": 1200,
"userDefaultCredits": 100,
"userDefaultDailyCredits": 20
}Changes
- info
added the optional property
to the response with the status
- info
- info
added the required property
to the response with the status
- info