---
title: "List observed usage event field values"
method: GET
path: "/v1/ai-cost-management/events/field-values"
tags: ["usage-events"]
---

# List observed usage event field values

`GET /v1/ai-cost-management/events/field-values`

## Request

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

Returns a page of the distinct values seen so far in one field of the organization's usage events, in ascending `value` order unless `sort` is `value desc`. A client can offer them as choices for usage filters.

Subjects come back as subject references, such as `principal/{uuid}`, which the usage filters accept as they are. For `field=tags`, a request without `key` lists the tag keys, and a request with `key` lists the values of that tag.

For a caller with access to the whole organization, a value stays in the list after the events that carried it leave retention or are deleted. For a caller whose access covers only particular principals or groups, the `subject` list holds only the subjects of the events of those principals and groups, so a subject leaves the list with its events. Such a caller's `groups` and `teams` lists hold only the groups the caller's access names. Every other field lists the organization's values, the same as for a caller with access to the whole organization.

The service may return fewer values than requested when the page reaches its byte budget. Follow the page links to continue.

The list doesn't take a time range or other usage filters, and it doesn't count usage. A cursor belongs to its `field` and `key`. With a cursor from another selection, the request fails with `400`.

## Query parameters

- `filter` AICostUsageEventFieldValueFilterParameters: Filters on the returned values. Every filter must match, and a bare value means `eq`. - `value`: `eq`, `neq`, `oeq`, `contains`, and `ocontains`, for every `field`, including the gateway ID fields. With `field=tags`, each value, including each part of an `oeq` or `ocontains` list, has at most 256 characters, none of them a control character. - `type`: `eq`, `neq`, and `oeq`, with a subject type. With any `field` other than `subject`, a `type` filter fails with `400`. Any other filter key fails with `400`. `eq`, `neq`, and `oeq` compare strings case-sensitively, and `contains` and `ocontains` ignore case. For a UUID field, `eq`, `neq`, and `oeq` compare full UUIDs case-insensitively.
  - `value` 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.
  - `type` union: Filters a field by its value with `eq`, `neq`, or `oeq`. Accepts `principal`, `consumer`, and `oidc`. A bare value means `eq`.
    - 'principal' | 'consumer' | 'oidc': The type of a subject reference, the part before the `/`: - `principal`: a Kong Identity principal. - `consumer`: a gateway consumer or an AI Gateway consumer. - `oidc`: an OIDC subject, when only an OIDC credential identifies the caller.
    - AICostObservedSubjectTypeEqualsFilter: Matches a value equal to the given one.
      - `eq` 'principal' | 'consumer' | 'oidc', required: The value to match.
    - AICostObservedSubjectTypeNEQFilter: Matches a value other than the given one.
      - `neq` 'principal' | 'consumer' | 'oidc', required: The value to exclude.
    - StringFieldOEQFilter: Returns entities that exact match any of the comma-delimited phrases in the filter string.
      - `oeq` string, required
- `sort` string
- `page[size]` integer
- `page[after]` string
- `page[before]` string
- `field` 'subject' | 'tags' | 'source' | 'provider' | 'model' | 'model_id' | 'region' | 'client' | 'groups' | 'teams' | 'service_id' | 'route_id' | 'consumer_id' | 'application_id' | 'consumer_group_ids', required
- `key` string
- `q` string

## Response `200`

A page of distinct values.

- object
  - `data` object[], required: The values on this page, in `sort` order.
    - `value` string, required: One distinct value seen in the selected field: a field value, a tag key, or a tag value. A subject is a subject reference, such as `principal/{uuid}`.
  - `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/events/field-values/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)
