---
title: "Get a key"
method: GET
path: "/v1/realms/{realmId}/consumers/{consumerId}/keys/{keyId}"
tags: ["Centrally Managed Keys"]
---

# Get a key

`GET /v1/realms/{realmId}/consumers/{consumerId}/keys/{keyId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/realms/{realmId}/consumers/{consumerId}/keys/{keyId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/kong/apis/konnect-api/docs/v1/realms/:realmId/consumers/:consumerId/keys/:keyId/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the key entity. This operation does **NOT** return the key itself. The key is only available at the time of creation.

## Response `200`

success

- ApiKey
  - `id` string, required
  - `created_at` string, date-time, required: An ISO-8601 timestamp representation of entity creation date.
  - `tags` string[], required
  - `type` 'legacy' | 'new', required

## Other responses

- `404`: Not Found

## Changes

- **2026-09-30** `f530bf400198`: 1 warning
  - added the new `404.00` enum value to the `status` response property for the response status `404`
- **2026-09-25** `4a02153f2e60`: 1 breaking, 6 info
  - the response's body type changed from no type to `object` for status `404`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `404`
  - added the optional property `type` to the response with the `404` status
  - added the required property `detail` to the response with the `404` status
  - …3 more
- **2025-06-27** `9f695af25102`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v1/realms/:realmId/consumers/:consumerId/keys/:keyId/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api/revisions/f018071a4515?raw)
