---
title: "Get an AI Gateway's attribution plugin"
method: GET
path: "/v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin"
tags: ["attribution-plugins"]
---

# Get an AI Gateway's attribution plugin

`GET /v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns the attribution plugin installed on an AI Gateway, with its version, the newest version, and its configuration. The installation is what this product last installed: a change made to the gateway's policies elsewhere doesn't show here. If the gateway has no installation, or the identifier isn't a valid ID, the request fails with `404`.

## Path parameters

- `gatewayId` string, uuid, required

## Response `200`

The attribution plugin installation.

- AICostAttributionPlugin: The attribution plugin installed on one AI Gateway, with its configuration.
  - `gateway_id` string, uuid, required: The ID of the AI Gateway the plugin is installed on.
  - `version` string, required: The plugin version installed on the gateway.
  - `latest_version` string, required: The newest plugin version. When it differs from `version`, a `PUT` of the stored configuration installs it.
  - `integrations` AICostAttributionPluginIntegration[], required: The integrations whose headers the plugin reads.
  - `headers` AICostAttributionPluginHeaderMapping[], required: Request headers mapped to tag keys.
    - `name` string, required: The request header, compared case-insensitively. A credential header, or the start of one such as `x-goog` for `x-goog-api-key`, is refused.
    - `tag_key` string, required: The tag key the header's value becomes.
  - `prefixes` AICostAttributionPluginPrefixMapping[], required: Header prefixes whose headers become tags.
    - `name` string, required: The prefix, compared case-insensitively. Every header named `<name>-<remainder>` becomes the tag `<remainder>`. A credential header, or the start of one, is refused.
  - `operator_tags` object, required: Tags the plugin adds to every request.
  - `group_patterns` string[], required: PCRE regular expressions that choose which groups the plugin keeps from the caller's token.
  - `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.

## Other responses

- `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 AI Gateway has no attribution plugin installation.

## 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/ai-gateways/:gatewayId/attribution-plugin/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)
