---
title: "Changes to Create a group API key"
method: POST
path: "/v2/directories/{directoryId}/groups/{groupId}/api-keys"
---

# Changes to Create a group API key

`POST /v2/directories/{directoryId}/groups/{groupId}/api-keys`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 4 of 155 revisions.

- **2026-11-16** `a209c8bfa7b7`: 4 breaking
- **2026-11-12** `d8bd04cfbaf7`: 3 breaking, 1 warning, 6 info
- **2026-11-05** `ff8439091e5f`: 7 breaking, 2 info
- **2026-11-03** `72599e2b1b09`: 1 info

## Changes

- **2026-11-16** `a209c8bfa7b7`: 4 breaking
  - the `type` request property const value `imported` was added
  - the `type` request property const value `v1` was added
  - removed the enum value `imported` of the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/type`
  - removed the enum value `v1` of the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/type`
- **2026-11-12** `d8bd04cfbaf7`: 3 breaking, 1 warning, 6 info
  - request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/type` was restricted to a list of enum values
  - request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/type` was restricted to a list of enum values
  - the `managed_by/additionalProperties/` response property's maxLength was increased from `63` to `127` for the response status `201`
  - changed the pattern of the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/managed_by/additionalProperties/` from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$`
  - the `type` request property const value `imported` was removed
  - the `type` request property const value `v1` was removed
  - added the new `imported` enum value to the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/type`
  - added the new `v1` enum value to the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/type`
  - the `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/managed_by/additionalProperties/` request property's maxLength was increased from `63` to `127`
  - the `managed_by/additionalProperties/` response's property pattern was changed from `^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$` to `^[^\s\x00-\x1F\x7F-\x9F]+$` for the status `201`
- **2026-11-05** `ff8439091e5f`: 7 breaking, 2 info
  - the request's body type changed from `object` to no type
  - the `type` request property const value `imported` was added
  - the `type` request property const value `v1` was added
  - removed the enum value `imported` of the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/type`
  - removed the enum value `v1` of the request property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/type`
  - the `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/` request property type changed from no type to `object`
  - the `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/` request property type changed from no type to `object`
  - the request optional property `oneOf[#/components/schemas/CreatePrincipalKeyBodyImported]/expires_at` became not read-only
  - the request optional property `oneOf[#/components/schemas/CreatePrincipalKeyBodyv1]/expires_at` became not read-only
- **2026-11-03** `72599e2b1b09`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/kong/apis/konnect-api-go-sdk/docs/v2/directories/:directoryId/groups/:groupId/api-keys/post.md) - [API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) - [Page](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/directories/:directoryId/groups/:groupId/api-keys/post)
