---
title: "List rules"
method: GET
path: "/v1/ai-gateway/rules"
tags: ["ai-gateway"]
---

# List rules

`GET /v1/ai-gateway/rules`

List the authenticated team's routing rules

## Query parameters

- `includeDisabled` 'true' | 'false'
- `teamId` string
- `slug` string

## Response `200`

- AiGatewayRuleList
  - `rules` AiGatewayRule[], required
    - `ownerId` string, required
    - `ruleId` string, required
    - `type` 'deny' | 'rewrite', required
    - `match` object
      - `model` string
    - `action` object
      - `rewriteModel` string
      - `reason` string
    - `enabled` false | true, required
    - `deleted` false | true
    - `description` string
    - `createdBy` string
    - `updatedBy` string
    - `createdAt` number, required
    - `updatedAt` number, required

## Other responses

- `400` — One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `403` — You do not have permission to access this resource.
- `410`
- `500`

## Changes

> 39 revisions in range; 20 could not be searched.

- **2026-07-31** `e20468c66692` — 2 info
  - api tag `ai-gateway` added
  - api tag `api-ai-gateway` removed
- **2026-07-21** `2ae10ee9d21c` — 1 info
  - added the non-success response with the status `410`
- **2026-07-14** `314022afff45` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/vercel/apis/api/changes/v1/ai-gateway/rules/get.md)

---

[API](https://skmtc.dev/vercel/apis/api.md) · [All operations](https://skmtc.dev/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vercel/api/revisions/4191ba96b0c1/schema)
