---
title: "Changes to Create a key"
method: POST
path: "/v1/realms/{realmId}/consumers/{consumerId}/keys"
---

# Changes to Create a key

`POST /v1/realms/{realmId}/consumers/{consumerId}/keys`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 6 of 70 revisions.

- **2026-10-23** `30af8b28f6ef`: 1 breaking, 2 warning
- **2026-09-30** `f530bf400198`: 2 warning
- **2026-09-25** `4a02153f2e60`: 2 breaking, 13 info
- **2025-10-29** `19e869275e28`: 1 warning
- **2025-08-22** `96118a9cd7f4`: 5 breaking, 1 info
- **2025-06-27** `9f695af25102`: 1 info

## Changes

- **2026-10-23** `30af8b28f6ef`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2026-09-30** `f530bf400198`: 2 warning
  - added the new `400.00` enum value to the `status` response property for the response status `400`
  - added the new `404.00` enum value to the `status` response property for the response status `404`
- **2026-09-25** `4a02153f2e60`: 2 breaking, 13 info
  - the response's body type changed from no type to `object` for status `400`
  - 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 `400`
  - 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 `400` status
  - added the optional property `type` to the response with the `404` status
  - added the required property `detail` to the response with the `400` status
  - added the required property `detail` to the response with the `404` status
  - added the required property `instance` to the response with the `400` status
  - added the required property `instance` to the response with the `404` status
  - added the required property `invalid_parameters` to the response with the `400` status
  - added the required property `status` to the response with the `400` status
  - added the required property `status` to the response with the `404` status
  - added the required property `title` to the response with the `400` status
  - added the required property `title` to the response with the `404` status
- **2025-10-29** `19e869275e28`: 1 warning
  - added the new `type` enum value to the `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2025-08-22** `96118a9cd7f4`: 5 breaking, 1 info
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterChoiceItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterDependentItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMaximumLength]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMinimumLength]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/source` became nullable for the status `400`
  - the `type` request property default value `legacy` was added
- **2025-06-27** `9f695af25102`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kong/apis/konnect-api/docs/v1/realms/:realmId/consumers/:consumerId/keys/post.md) - [API](https://skmtc.dev/kong/apis/konnect-api.md) - [Page](https://skmtc.dev/kong/apis/konnect-api/changes/v1/realms/:realmId/consumers/:consumerId/keys/post)
