---
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`

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

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/f920f418f552/schema)
