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

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

---

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