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

# List budgets

`GET /v1/ai-cost-management/budgets`

## Request

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

Returns a page of the organization's budgets, newest first unless the request sets `sort`. Filters on `name`, `effect`, `priority`, `posture`, `labels.<key>`, and `managed_by.<key>` narrow the list.

For a caller whose access covers only particular principals or groups, the list holds only the budgets whose scope lies within those principals and groups. It also holds each budget with `each` set to `subject` or `subject_id` whose scope covers one of the caller's principals.

## Query parameters

- `filter` AICostBudgetFilterParameters: Filters on the budgets' fields. Every filter must match, and a bare value means `eq`. - `name`: `eq`, `neq`, `oeq`, `contains`, and `ocontains`. - `effect` and `posture`: `eq`, `neq`, and `oeq`. - `priority`: `eq`, `gt`, `gte`, `lt`, and `lte`. - `labels.<key>`: the value of the label `<key>`, with the operators of `name` plus `exists` and `nexists`. A bare key with no value matches budgets that have the label. - `managed_by.<key>`: the value of the `managed_by` key `<key>`, such as `filter[managed_by.tool]=terraform-provider-konnect`, with the operators of `labels.<key>`. A bare key with no value matches budgets that have the key. - `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. Any other filter key fails with `400`. `eq`, `neq`, and `oeq` compare strings case-sensitively, and `contains` and `ocontains` ignore case.
  - `name` StringFieldFilter: Filter using **one** of the following operators: `eq`, `oeq`, `neq`, `contains`, `ocontains`
    - `eq` string: The field exactly matches the provided value.
    - `contains` string: The field contains the provided value.
    - `ocontains` string: The field contains any of the provided values.
    - `oeq` string: The field matches any of the provided values.
    - `neq` string: The field does not match the provided value.
  - `effect` union: Filters a field by its value with `eq`, `neq`, or `oeq`. Accepts `limit` and `exempt`. A bare value means `eq`.
    - 'limit' | 'exempt': The kind of budget: `limit` sets a spending limit, and `exempt` declares a time-limited exemption that sets no limit.
    - AICostBudgetEffectFieldEqualsFilter: Matches a value equal to the given one.
      - `eq` 'limit' | 'exempt', required: The value to match.
    - AICostBudgetEffectFieldNEQFilter: Matches a value other than the given one.
      - `neq` 'limit' | 'exempt', required: The value to exclude.
    - StringFieldOEQFilter: Returns entities that exact match any of the comma-delimited phrases in the filter string.
      - `oeq` string, required
  - `priority` union: Filters an integer field by an exact value or a range. Filters on the same field must all match, so a lower and an upper bound together select an interval.
    - string: A bare integer, which means `eq`.
    - AICostIntegerFieldEqualsFilter: Matches a value equal to the given integer.
      - `eq` string, required: The integer to compare with.
    - AICostIntegerFieldGTFilter: Matches a value greater than the given integer.
      - `gt` string, required: The integer to compare with.
    - AICostIntegerFieldGTEFilter: Matches a value greater than or equal to the given integer.
      - `gte` string, required: The integer to compare with.
    - AICostIntegerFieldLTFilter: Matches a value less than the given integer.
      - `lt` string, required: The integer to compare with.
    - AICostIntegerFieldLTEFilter: Matches a value less than or equal to the given integer.
      - `lte` string, required: The integer to compare with.
  - `posture` union: Filters a field by its value with `eq`, `neq`, or `oeq`. Accepts `advisory` and `enforce`. A bare value means `eq`.
    - 'advisory' | 'enforce': How the budget responds when spend reaches its limit. With `advisory`, requests continue past the limit.
    - AICostBudgetPostureFieldEqualsFilter: Matches a value equal to the given one.
      - `eq` 'advisory' | 'enforce', required: The value to match.
    - AICostBudgetPostureFieldNEQFilter: Matches a value other than the given one.
      - `neq` 'advisory' | 'enforce', required: The value to exclude.
    - StringFieldOEQFilter: Returns entities that exact match any of the comma-delimited phrases in the filter string.
      - `oeq` string, required
  - `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

## Response `200`

A page of budgets.

- object
  - `data` AICostBudget[], required: The budgets on this page, in `sort` order.
    - union: A budget sets a spending limit, or declares an exemption from limits, for part of the organization's AI usage. `scope` selects the usage it covers. `effect` tells the two kinds apart. A limit budget carries its settings in `limit`, `window`, and `posture`, and an exemption carries the period it covers in `validity`. The fields of the other kind are `null`.
      - 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`.
      - AICostExemptBudget: An exemption declares that the usage in its scope is exempt from limits for a limited time. It sets no limit. The service stores and lists exemptions, but they change no balance or notification.
        - `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` 'exempt', required: Always `exempt` for an exemption, which carries the period it covers in `validity`.
        - `limit` 'null', nullable, required: Always `null`, because an exemption sets no limit.
        - `window` 'null', nullable, required: Always `null`, because an exemption has no budget window.
        - `posture` 'null', nullable, required: Always `null`, because an exemption has no posture.
        - `validity` object, required: The period the exemption covers, from `starts_at` until `ends_at`.
          - `starts_at` string, required: When the exemption starts, as an RFC 3339 timestamp in UTC or as a date-time with a UTC offset and an IANA time zone in brackets, such as `2026-08-16T00:00:00+02:00[Europe/Budapest]`. If the request omitted it, the budget's `created_at`.
          - `ends_at` string, required: When the exemption ends, in the same formats as `starts_at`.
  - `meta` CursorMeta, required: Pagination metadata.
    - `page` CursorMetaPage, required
      - `first` string, path: URI to the first page
      - `last` string, path: URI to the last page
      - `next` string, path, nullable, required: URI to the next page
      - `previous` string, path, nullable, required: URI to the previous page
      - `size` number, required: Requested page size

## Other responses

- `400`: A query parameter is invalid. `invalid_parameters` names each invalid parameter.
- `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/budgets/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)
