Docs

API reference · AI gateway

The budgets of the organization, oldest first

GET/v1/orgs/{org}/ai/budgets
Permission
ai.budgets.read
Operation
ai.budgets.list

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
limitqueryintegerno1 to 100; default 50
cursorquerystringno0 to 200 characters
kindquerystringnoone of "organization", "key", "named"
qquerystringno0 to 64 characters
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Response 200

FieldTypeRequiredNotes
itemsarray of objectyes
items[].idstringyesfor example "bud_01h455vb4pex5vsknk084sn02q"
items[].orgIdstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
items[].scopeobject or object or objectyes
items[].scope.kind"organization"yes
items[].scope.keystringyesfor example "gwk_01h455vb4pex5vsknk084sn02q"
items[].scope.namestringyes1 to 100 characters
items[].keyNamestring or nullyes
items[].limitNanoEurstringyesNano-euros (10^-9 EUR) as a decimal string. For example "50000000000"
items[].spentNanoEurstringyesNano-euros (10^-9 EUR) as a decimal string. For example "50000000000"
items[].createdAtstring (date-time)yesUTC, ISO 8601.
items[].updatedAtstring (date-time)yesUTC, ISO 8601.
nextCursorstring or nullyes