---
title: "List AI Gateway Custom Policies"
method: GET
path: "/v1/ai-gateways/{gatewayId}/custom-policies"
tags: ["AI Gateway Custom Policies"]
---

# List AI Gateway Custom Policies

`GET /v1/ai-gateways/{gatewayId}/custom-policies`

## Request

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

Returns a list of custom policies registered for the AI Gateway.

## Path parameters

- `gatewayId` string, uuid, required: Contains a unique identifier used for this resource.

## Query parameters

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

## Response `200`

A successful response listing AI Gateway Custom Policies.

- object
  - `data` AIGatewayCustomPolicy[], required
    - union: An AI Gateway custom policy.
      - intersection
        - [`AIGatewayCustomPolicyInstalled`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayCustomPolicyInstalled)
      - intersection
        - [`AIGatewayCustomPolicyStreaming`](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/3b071797f6e4/schema?at=%2Fcomponents%2Fschemas%2FAIGatewayCustomPolicyStreaming)
  - `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

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

## Changes

- **2026-11-16** `a209c8bfa7b7`: 4 info
  - the `type` response property const value `installed` was added for the status `200`
  - the `type` response property const value `streaming` was added for the status `200`
  - removed the `installed` enum value from the `data/items/oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/type` response property for the response status `200`
  - removed the `streaming` enum value from the `data/items/oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/type` response property for the response status `200`
- **2026-11-12** `d8bd04cfbaf7`: 4 breaking, 2 warning, 2 info
  - the `type` response property const value `installed` was removed for the status `200`
  - the `type` response property const value `streaming` was removed for the status `200`
  - the `data/items/oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - the `data/items/oneOf[#/components/schemas/AIGatewayCustomPolicyStreaming]/managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `200`
  - …4 more
- …earlier changes not shown

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