---
title: "List"
method: GET
path: "/ai_gateway_api_keys"
tags: ["AIGatewayAPIKeys"]
---

# List

`GET /ai_gateway_api_keys`

List all AI Gateway API Keys owned by account

## Query parameters

- `before_id` string
- `limit` string

## Headers

- `ngrok-version` integer, required

## Response `200`

List all AI Gateway API Keys owned by account

- AIGatewayAPIKeyList
  - `ai_gateway_api_keys` AIGatewayAPIKey[] — the list of AI Gateway API Keys for this account
    - `id` string — unique identifier for this API key
    - `uri` string — URI of this AI Gateway API Key API resource
    - `created_at` string — Timestamp when the API key was created (RFC 3339 format)
    - `updated_at` string — Timestamp when the API key was last updated (RFC 3339 format)
    - `description` string — human-readable description of this API key
    - `metadata` string — arbitrary user-defined metadata for this API key
    - `created_by` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `last_updated_by` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `endpoint` Ref
      - `id` string — a resource identifier
      - `uri` string — a uri for locating a resource
    - `token` string — the API key token. Only provided when the key is first created.
    - `display_name` string — n/a
    - `last_used` string — n/a
    - `provider_keys` AIGatewayProviderKey[] — provider keys attached to this managed key
      - `id` string — unique identifier for this provider key
      - `uri` string — URI of this AI Gateway Provider Key API resource
      - `created_at` string — Timestamp when the provider key was created (RFC 3339 format)
      - `updated_at` string — Timestamp when the provider key was last updated (RFC 3339 format)
      - `provider_id` string — which AI provider this key is for, e.g. "openai", "anthropic"
      - `description` string — human-readable description of this provider key
      - `metadata` string — arbitrary user-defined metadata for this provider key
      - `created_by` Ref
        - `id` string — a resource identifier
        - `uri` string — a uri for locating a resource
      - `last_updated_by` Ref
        - `id` string — a resource identifier
        - `uri` string — a uri for locating a resource
      - `ai_gateway_api_key` Ref
        - `id` string — a resource identifier
        - `uri` string — a uri for locating a resource
      - `display_name` string — redacted display form of the key value, e.g. sk-abc***xyz
      - `last_used` string — Timestamp when the provider key was last used (RFC 3339 format)
  - `uri` string — n/a
  - `next_page_uri` string — URI of the next page of results, or null if there is no next page

## Other responses

- `4XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.
- `5XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.

## Changes

- **2026-08-25** `c697539ac350` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ngrok/apis/ngrok-openapi/changes/ai_gateway_api_keys/get.md)

---

[API](https://skmtc.dev/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.dev/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/revisions/c697539ac350/schema)
