---
title: "List AI Gateway Datastore Usage"
method: GET
path: "/v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}/usage"
tags: ["AI Gateway Datastores"]
---

# List AI Gateway Datastore Usage

`GET /v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}/usage`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}/usage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns the policies and models that reference this Datastore.

## Path parameters

- `gatewayId` string, uuid, required: Contains a unique identifier used for this resource.
- `datastoreIdOrName` string, required: Identifier for an AI Gateway entity. In some cases, this may be the entity name or ID.

## Query parameters

- `page[size]` integer
- `page[after]` string

## Response `200`

A paginated list of the policies and models that reference an AI Gateway Datastore.

- object
  - `data` AIGatewayDatastoreUsageEntry[], required
    - `type` 'policy' | 'model' | 'mcp_server' | 'model_provider' | 'auth_strategy', required: The kind of entity holding the reference. A policy holds one in its `datastores` array. A model holds one for each Datastore it references. An MCP server, a model provider, or an auth strategy holds one when it stores credentials in the Token Vault. **`auth_strategy` requires a minimum runtime version of `2.3`**. **`mcp_server` requires a minimum runtime version of `2.3`**. **`model_provider` requires a minimum runtime version of `2.3`**.
    - `id` string, uuid, required: Contains a unique identifier used for this resource.
    - `name` string, required
    - `display_name` string, required
  - `meta` CursorMetaWithTotal, required: Pagination metadata with exact total. Useful when the collection size is inexpensive to provide.
    - `page` intersection, required
      - [`CursorMetaPage`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FCursorMetaPage)
      - object
        - `total` number, required: Total number of objects in the collection

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests

## Changes

- **2026-10-30** `89e97cdbf3a4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/ai-gateways/:gatewayId/datastores/:datastoreIdOrName/usage/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)
