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
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
limit | query | integer | no | 1 to 100; default 50 |
cursor | query | string | no | 0 to 200 characters |
kind | query | string | no | one of "organization", "key", "named" |
q | query | string | no | 0 to 64 characters |
x-obhut-management-assignment | header | string | no | Select 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
| Field | Type | Required | Notes |
|---|---|---|---|
items | array of object | yes | |
items[].id | string | yes | for example "bud_01h455vb4pex5vsknk084sn02q" |
items[].orgId | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
items[].scope | object or object or object | yes | |
items[].scope.kind | "organization" | yes | |
items[].scope.key | string | yes | for example "gwk_01h455vb4pex5vsknk084sn02q" |
items[].scope.name | string | yes | 1 to 100 characters |
items[].keyName | string or null | yes | |
items[].limitNanoEur | string | yes | Nano-euros (10^-9 EUR) as a decimal string. For example "50000000000" |
items[].spentNanoEur | string | yes | Nano-euros (10^-9 EUR) as a decimal string. For example "50000000000" |
items[].createdAt | string (date-time) | yes | UTC, ISO 8601. |
items[].updatedAt | string (date-time) | yes | UTC, ISO 8601. |
nextCursor | string or null | yes |