---
title: "List all API-keys"
method: GET
path: "/v2/control-planes/{controlPlaneId}/core-entities/key-auths"
tags: ["API-keys"]
---

# List all API-keys

`GET /v2/control-planes/{controlPlaneId}/core-entities/key-auths`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/key-auths`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

List all API-keys

## Query parameters

- `size` integer
- `offset` string
- `tags` string

## Response `200`

A successful response listing API-keys

- object
  - `data` KeyAuth[]
    - `consumer` object, nullable
      - `id` string
    - `created_at` integer, nullable: Unix epoch when the resource was created.
    - `id` string, nullable: A string representing a UUID (universally unique identifier).
    - `key` string, nullable
    - `tags` string[], nullable: A set of strings representing tags.
    - `ttl` integer, nullable: key-auth ttl in seconds
  - `next` string: URI to the next page (may be null)
  - `offset` string: Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page

## Other responses

- `401`: Unauthorized

## Changes

- **2025-08-22** `3c0154b2053a`: 1 breaking
  - the response property `data` became nullable for the status `200`
- **2025-07-22** `76b0fefddb0d`: 1 breaking
  - the response property `data/items/tags` became nullable for the status `200`
- **2025-05-22** `2a7df3ca52c8`: 2 breaking
  - the response property `data/items/key` became nullable for the status `200`
  - the response property `data/items/key` became optional for the status `200`

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/control-planes/:controlPlaneId/core-entities/key-auths/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/7aab863a6daa?raw)
