---
title: "Get a notification event"
method: GET
path: "/v1/ai-cost-management/notification-events/{eventId}"
tags: ["budgets"]
---

# Get a notification event

`GET /v1/ai-cost-management/notification-events/{eventId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/notification-events/{eventId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns one notification event of either kind: a threshold event, with `kind` set to `threshold`, or a channel test, with `kind` set to `test`. A threshold event's `budget` is a reference unless the request sends `expand=budget`, which renders the full budget. Reading a test event shows the outcome of a test sent with `POST /v1/ai-cost-management/notification-channels/{channelId}/tests`.

A caller whose access covers only particular principals or groups reads only the threshold events that the event list shows them. For such a caller, any other event, including every channel test, fails with `404`. If the organization has no notification event with this identifier, or the identifier isn't a valid UUID, the request fails with `404`.

## Path parameters

- `eventId` string, uuid, required

## Query parameters

- `expand` string

## Response `200`

The notification event.

- union
  - AICostNotificationThresholdEvent: A threshold event is one firing of a budget's notification rule. A firing is a recorded threshold crossing: the record that spend in a budget window reached one of the rule's thresholds. With `expand=budget`, the event carries the full budget in `budget` instead of a reference, so a list can show each budget's name and scope without reading the budget.
    - `id` string, uuid, required: Contains a unique identifier used for this resource.
    - `budget` union, required: The limit budget whose threshold was crossed: a reference by default, or the full budget when the request sends `expand=budget`.
      - 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`.
    - `threshold` AICostNotificationThreshold, required: The threshold that was reached.
      - `percent` integer, required: The share of the limit, as a whole percent. A value above 100 fires on spend beyond the limit. 1 to 1000.
    - `value` string, nullable, required: The value of the `each` field whose derived budget crossed the threshold, or `null` for a pooled budget.
    - `window` AICostTimeWindow, required: The budget window the evaluation measured. A crossing recorded after its window ended, such as one that late usage causes, has a `fired_at` at or after `window.ends_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.
    - `limit` AICostMoney, required: The budget's limit when the crossing was recorded.
      - `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` AICostMoney, required: The spend that the evaluation counted when it recorded the crossing. With `each`, it's the spend of the derived budget in `value`. It can be higher than the threshold's share of 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`.
    - `fired_at` string, date-time, required: When the crossing was recorded, as an RFC 3339 timestamp in UTC.
    - `deliveries` union[], required: The deliveries of this firing: one message to each channel the rule listed when the firing was recorded, with its status. Channels deleted since then are left out. Only the highest threshold crossed so far sends alerts. The list is empty when a higher threshold fired before or together with this one for the same budget window, derived budget, and limit, or when the rule had no channels.
      - union
        - AICostNotificationDeliveryPending: A delivery of one firing's message to one channel, still in progress.
          - `channel` AICostNotificationChannelSummary, required: The channel the message goes to.
            - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
            - `name` string, required: The channel's human-readable name.
            - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
          - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.
          - `status` 'pending', required: The message is queued, being sent, or waiting for a retry.
          - `error` 'null', nullable, required: `null`, because the delivery hasn't failed.
        - AICostNotificationDeliveryDelivered: A delivery of one firing's message to one channel that Slack accepted, or that was queued for every email recipient.
          - `channel` AICostNotificationChannelSummary, required: The channel the message goes to.
            - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
            - `name` string, required: The channel's human-readable name.
            - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
          - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.
          - `status` 'delivered', required: Slack's webhook answered with a `2xx` status, or the email was queued for every recipient at Konnect's email service. A later rejection, suppression, or bounce by the email service doesn't change this status.
          - `error` 'null', nullable, required: `null`, because the delivery hasn't failed.
        - AICostNotificationDeliveryFailed: A delivery of one firing's message to one channel that failed.
          - `channel` AICostNotificationChannelSummary, required: The channel the message goes to.
            - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
            - `name` string, required: The channel's human-readable name.
            - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
          - `updated_at` string, date-time, required: An ISO-8601 timestamp representation of entity update date.
          - `status` 'failed', required: The message couldn't be delivered. `error` says why.
          - `error` union, required: Why the delivery failed.
            - 'slack_no_service' | 'slack_channel_not_found' | 'slack_channel_is_archived' | 'slack_action_prohibited' | 'slack_invalid_payload' | 'slack_user_not_found' | 'slack_team_disabled' | 'slack_invalid_token' | 'slack_redirected' | 'slack_invalid_target' | 'email_invalid_target' | 'mailbox_publish_failed' | 'email_render_failed' | 'transport_error' | 'attempts_exhausted' | 'window_ended'
            - string
    - `kind` 'threshold', required: Always `threshold` for a threshold event.
  - union: A channel test is a test message sent through a channel's real delivery path, with test wording and example figures, so what arrives shows what an alert will look like. `status` shows where the test stands: - `pending`: the test message is queued or being sent. - `delivered`: Slack's webhook answered the test message with a `2xx` status, or the test email was queued for every recipient at Konnect's email service. A later rejection, suppression, or bounce by the email service doesn't change this status. - `failed`: the test message couldn't be delivered, and `error` says why. A test isn't retried, so its first failed attempt fails it.
    - AICostNotificationTestEventPending: A test message to one channel, still in progress.
      - `kind` 'test', required: Always `test` for a channel test.
      - `id` string, uuid, required: Contains a unique identifier used for this resource.
      - `channel` AICostNotificationChannelSummary, required: The channel the test message goes to.
        - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
        - `name` string, required: The channel's human-readable name.
        - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
      - `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.
      - `status` 'pending', required: The test message is queued or being sent.
      - `error` 'null', nullable, required: `null`, because the test hasn't failed.
    - AICostNotificationTestEventDelivered: A test message to one channel that Slack accepted, or that was queued for every email recipient.
      - `kind` 'test', required: Always `test` for a channel test.
      - `id` string, uuid, required: Contains a unique identifier used for this resource.
      - `channel` AICostNotificationChannelSummary, required: The channel the test message goes to.
        - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
        - `name` string, required: The channel's human-readable name.
        - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
      - `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.
      - `status` 'delivered', required: Slack's webhook answered the test message with a `2xx` status, or the test email was queued for every recipient at Konnect's email service. A later rejection, suppression, or bounce by the email service doesn't change this status.
      - `error` 'null', nullable, required: `null`, because the test hasn't failed.
    - AICostNotificationTestEventFailed: A test message to one channel that failed.
      - `kind` 'test', required: Always `test` for a channel test.
      - `id` string, uuid, required: Contains a unique identifier used for this resource.
      - `channel` AICostNotificationChannelSummary, required: The channel the test message goes to.
        - `id` string, uuid, required: The `id` of the channel, which the notification channel operations take as `channelId`.
        - `name` string, required: The channel's human-readable name.
        - `type` 'email' | 'slack', required: Whether the channel sends email or posts to Slack.
      - `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.
      - `status` 'failed', required: The test message couldn't be delivered. A test isn't retried, so its first failed attempt fails it. `error` says why.
      - `error` union, required: Why the test failed: the same reason a real delivery would carry.
        - 'slack_no_service' | 'slack_channel_not_found' | 'slack_channel_is_archived' | 'slack_action_prohibited' | 'slack_invalid_payload' | 'slack_user_not_found' | 'slack_team_disabled' | 'slack_invalid_token' | 'slack_redirected' | 'slack_invalid_target' | 'email_invalid_target' | 'mailbox_publish_failed' | 'email_render_failed' | 'transport_error' | 'attempts_exhausted' | 'window_ended'
        - string

## Other responses

- `400`: `expand` names a path the operation doesn't accept.
- `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.
- `404`: The organization has no notification event with this identifier that the caller can see.

## 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/notification-events/:eventId/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)
