---
title: "List all API-keys associated with a Consumer"
method: GET
path: "/{workspace}/consumers/{ConsumerIdForNestedEntities}/key-auth"
tags: ["API-keys"]
---

# List all API-keys associated with a Consumer

`GET /{workspace}/consumers/{ConsumerIdForNestedEntities}/key-auth`

List all API-keys associated with a Consumer

## Path parameters

- `ConsumerIdForNestedEntities` string, required
- `workspace` string, required

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

## Changes

> 8 revisions in range; 1 not diffed.

- **2025-10-09** `740b73588ef4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/:workspace/consumers/:ConsumerIdForNestedEntities/key-auth/get.md)

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/revisions/740b73588ef4?raw)
