API reference · AI gateway
Get a budget
GET
/v1/orgs/{org}/ai/budgets/{budget}- Permission
ai.budgets.read- Operation
ai.budgets.get
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
budget | path | string | yes | for example "bud_01h455vb4pex5vsknk084sn02q" |
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 |
|---|---|---|---|
id | string | yes | for example "bud_01h455vb4pex5vsknk084sn02q" |
orgId | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
scope | object or object or object | yes | |
scope.kind | "organization" | yes | |
scope.key | string | yes | for example "gwk_01h455vb4pex5vsknk084sn02q" |
scope.name | string | yes | 1 to 100 characters |
keyName | string or null | yes | |
limitNanoEur | string | yes | Nano-euros (10^-9 EUR) as a decimal string. For example "50000000000" |
spentNanoEur | string | yes | Nano-euros (10^-9 EUR) as a decimal string. For example "50000000000" |
createdAt | string (date-time) | yes | UTC, ISO 8601. |
updatedAt | string (date-time) | yes | UTC, ISO 8601. |