---
title: "List budget balances"
method: GET
path: "/v1/ai-cost-management/budget-balances"
tags: ["budgets"]
---

# List budget balances

`GET /v1/ai-cost-management/budget-balances`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/budget-balances`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns a page of the balances of the organization's limit budgets, highest consumed share first unless the request sets `sort`. Exemptions have no balance.

- A limit budget without `each` has one balance for its whole scope, with `value` set to `null`.
- A limit budget with `each` has one balance for every value of the `each` field with usage in the budget window.
- A value that an `eq` or `in` predicate on the `each` field selects has a balance even without usage.

`filter[budget.id]` narrows the list to some budgets, and `filter[scope.subject]` and `filter[scope.group]` to the balances of one entity. `budget` is a reference unless the request sends `expand=budget`, which renders the full budget. For a caller whose access covers only particular principals or groups, the list holds the balances of the budgets that the budget list shows that caller. For a budget that the caller sees only through their own derived budget, it holds that one balance, even without usage.

`evaluated_at` fixes every budget window for every page, unless a budget's window changes, but not the usage: usage that arrives while a client reads the pages can change the amounts. A zero limit has no consumed share, and its balances sort as the highest share.

## Query parameters

- `filter` AICostBudgetBalanceFilterParameters: Filters on the balances' fields. Every filter must match, and a bare value means `eq`. - `budget.id`: `eq`, `neq`, and `oeq`. - `scope.subject`, `scope.group`, and `scope.team`: `eq` and `oeq`, with complete typed references: subjects as `principal/{uuid}`, `consumer/{uuid}`, or `oidc/{sub}`, groups as `principal/{uuid}`, `consumer_group/{uuid}`, or `oidc/{group}`, and teams as `principal/{uuid}`, where `{uuid}` is never the nil UUID. A Kong Identity group goes under `scope.group`, and a Kong Identity team under `scope.team`. A budget matches when a branch of its scope names a listed reference in a `subject`, `group`, or `team` predicate with `eq` or `in`, or when a listed reference is one of its derived values: a subject on a budget whose `each` is `subject` or `subject_id`, a group on a budget whose `each` is `group`, or a team on a budget whose `each` is `team`. A pooled budget whose scope names no subject, group, or team, such as an organization-wide budget, never matches. `oeq` can't list a reference that contains a comma. A budget that `scope.subject`, `scope.group`, or `scope.team` matches through a listed derived value lists only the balances of the listed values it admits, with zero spend without usage. Every other matching budget lists all its balances. Any other filter key fails with `400`. UUIDs compare case-insensitively.
  - `budget.id` UuidFieldFilter: Filter using **one** of the following operators: `eq`, `oeq`, `neq`
    - `eq` string: The field exactly matches the provided value.
    - `oeq` string: The field matches any of the provided values.
    - `neq` string: The field does not match the provided value.
  - `scope.subject` AICostReferenceFieldFilter: Filter using **one** of the following operators: `eq`, `oeq`
    - `eq` string: The field exactly matches the provided value.
    - `oeq` string: The field matches any of the provided values.
  - `scope.group` AICostReferenceFieldFilter: Filter using **one** of the following operators: `eq`, `oeq`
    - `eq` string: The field exactly matches the provided value.
    - `oeq` string: The field matches any of the provided values.
  - `scope.team` AICostReferenceFieldFilter: Filter using **one** of the following operators: `eq`, `oeq`
    - `eq` string: The field exactly matches the provided value.
    - `oeq` string: The field matches any of the provided values.
- `sort` string
- `page[size]` integer
- `page[after]` string
- `page[before]` string
- `expand` string
- `evaluated_at` string, date-time

## Response `200`

A page of balances.

- object
  - `data` object[], required: The balances on this page, in `sort` order: one for each limit budget without `each`, and one for each derived budget of a limit budget with `each`. A value that an `eq` or `in` predicate on the `each` field selects appears even without usage, with zero spend.
    - `budget` union, required: The limit budget the balance belongs to: a reference by default, or the full budget when the request sends `expand=budget`, so a list can show its name and scope without reading it.
      - AICostLimitBudget: A limit budget sets a spending limit on the usage in its scope for each budget window. It has a balance, and it can have a notification rule that alerts as spend reaches shares of the limit.
        - `id` string, uuid, required: Contains a unique identifier used for this resource.
        - `name` string, required: A human-readable name for the budget.
        - `labels` Labels, required: Key-value metadata on the budget. The budget list can filter by label. Balances and notification rules ignore labels.
        - `managed_by` ManagedBy, required: Identifies the tool that manages this resource, such as `{"tool": "terraform-provider-konnect"}`. The service stores the value and never acts on it.
        - `scope` object, required: The usage the budget covers.
          - `filters` AICostBudgetScopeFilter[], required: The filters that select the usage the budget counts. Usage must match every filter. An empty list covers all of the organization's usage.
            - union: One filter in a budget scope: a predicate on one usage field, or a group that combines filters with `and` or `or`.
              - …
          - `each` union, required: The field that splits the budget. With `each`, the limit applies separately to every value of that field, such as each subject. Each value gets its own derived budget, and usage without a value for the field belongs to none of them. A fixed usage field or `tags.<key>`. `null` for a pooled budget, whose limit applies to all its usage together, and always `null` on an exemption.
            - 'subject_type' | 'subject' | 'subject_id' | 'group' | 'team' | 'model' | 'provider' | 'request_mode': A usage field that a budget scope can filter on, and that `each` can split a budget by: - `subject`: the subject reference, such as `principal/{uuid}`. Equal identifiers from different identity systems stay distinct. - `subject_id`: the subject's identifier without its type, which pools equal identifiers across identity systems. - `subject_type`: the subject's identity system: `principal`, `consumer`, or `oidc`. - `group`: the usage's group references. Usage can carry several groups. `eq` and `in` match when any of them matches. `neq` and `nin` match only usage with at least one group, and exclude it when any of its groups matches. - `team`: the usage's Kong Identity team references, with the membership rules of `group`. - `model`: the model that the provider reports as served. - `provider`: the provider that served the invocation. - `request_mode`: how the invocation was served: `stream`, `oneshot`, or `realtime`. A scope can also use `tags.<key>` for the value of one tag.
            - string
        - `priority` integer, required: The budget's priority, from 1 (highest) to 100 (lowest). You can filter and sort the budget list by it.
        - `created_by` string, uuid, nullable, required: The `id` of the user or system account that created the budget, which the server records. A person with a budget of their own can replace and delete only the budgets they created. `null` for a budget created before the service recorded creators.
        - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
        - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.
        - `effect` 'limit', required: Always `limit` for a limit budget, which carries its settings in `limit`, `window`, and `posture`.
        - `limit` AICostMoney, required: The spending limit for each budget window. With `each`, every derived budget gets this limit.
          - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
          - `currency` 'USD', required: The currency of `value`.
        - `window` object, required: The budget window: the period the limit applies to, such as a calendar month. When one window ends, the next starts.
          - `type` 'fixed', required: The kind of budget window. Always `fixed`: windows of length `interval` follow each other, aligned to `anchored_at`.
          - `interval` string, required: The length of each budget window, as an ISO 8601 duration such as `P1M` for a month or `P1D` for a day.
          - `anchored_at` string, required: A time when a budget window starts. Windows start a whole number of intervals before or after it. The intervals count in the local time of its time zone, so calendar units such as months stay aligned to the calendar. A window that would start on a day its month doesn't have, such as the 31st, starts on the month's last day. A date-time with a UTC offset and an IANA time zone in brackets, such as `2026-01-01T00:00:00+01:00[Europe/Budapest]`.
        - `posture` 'advisory' | 'enforce', required: How the budget responds when spend reaches its limit.
        - `validity` 'null', nullable, required: Always `null`, because only an exemption has `validity`.
      - AICostBudgetReference: A reference to one of the organization's budgets by its `id`.
        - `id` string, uuid, required: The `id` of the budget, which the budget operations take as `budgetId`.
    - `value` string, nullable, required: The value of the budget's `each` field that defines this derived budget, or `null` for the whole scope of a budget without `each`.
    - `window` AICostTimeWindow, required: The budget window that contains `evaluated_at`.
      - `starts_at` string, date-time, required: When the budget window starts, as an RFC 3339 timestamp in UTC.
      - `ends_at` string, date-time, required: When the budget window ends and the next one starts, as an RFC 3339 timestamp in UTC.
    - `consumed` AICostMoney, required: The spend in the budget window. For a derived budget, the spend of usage with its `value`.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
    - `remaining` AICostMoney, required: The budget's limit minus `consumed`. Negative once spend exceeds the limit.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
    - `projected` AICostMoney, required: Where `consumed` ends the budget window at the current pace, rounded to the cent.
      - `value` string, required: The amount in major units of `currency`, as a canonical decimal string such as `4125.5` or `0.004372`: at most 9 fractional digits, no trailing fractional zeros, no exponent, and a leading `-` only when the amount is negative.
      - `currency` 'USD', required: The currency of `value`.
    - `consumed_share` string, nullable, required: `consumed` divided by the budget's limit, as a decimal string such as `1.334843` when spend is about 133% of the limit. At most 9 fractional digits. `null` when the limit is zero.
    - `latest_record_at` string, date-time, nullable, required: When the newest usage counted in the balance reached the service, as an RFC 3339 timestamp in UTC. It doesn't show that all earlier usage has arrived. `null` when no usage matches.
  - `meta` object, required: What every balance on the page shares: the time of the calculation, with the page links and the total.
    - `evaluated_at` string, date-time, required: The time the balances are calculated for, as an RFC 3339 timestamp in UTC. It selects each budget's window. Page links carry it, so every page uses the same windows unless a budget's window changes.
    - `page` intersection, required
      - [`CursorMetaPage`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCursorMetaPage)
      - object
        - `total` integer, required: The number of balances on all pages together: those that the request's filters select and the caller can see, at `evaluated_at`, from the usage stored when this page was read.

## Other responses

- `400`: A query parameter is invalid. `invalid_parameters` names each invalid parameter. For CSV, remove each supplied pagination key, such as `page[size]`, to request every matching balance.
- `401`: The request has no valid access token. The token is missing, malformed, or expired, or it fails another check, and the response doesn't say which.
- `403`: The access token is valid, but its principal lacks the permission this operation requires. For an operation on one resource, the response doesn't reveal whether that resource exists.

## Changes

- **2026-11-19** `3b071797f6e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/ai-cost-management/budget-balances/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4?raw)
