---
title: "Create a kek"
method: POST
path: "/dek-registry/v1/keks"
tags: ["Key Encryption Keys (v1)"]
---

# Create a kek

`POST /dek-registry/v1/keks`

## Query parameters

- `testSharing` boolean

## Request body

- CreateKekRequest
  - `name` string — Name of the kek
  - `kmsType` string — KMS type of the kek
  - `kmsKeyId` string — KMS key ID of the kek
  - `kmsProps` object — Properties of the kek
  - `doc` string — Description of the kek
  - `shared` boolean — Whether the kek is shared
  - `deleted` boolean — Whether the kek is deleted

## Response `200`

The create response

## Other responses

- `409` — Conflict. Error code 40971 -- Key already exists. Error code 40972 -- Too many keys.
- `422` — Error code 42271 -- Invalid key

---

[API](https://skmtc.dev/confluent/apis/confluent-cloud-apis.md) · [All operations](https://skmtc.dev/confluent/apis/confluent-cloud-apis/llms.txt) · [OpenAPI document](https://skmtc.dev/confluent/apis/confluent-cloud-apis/revisions/cd93f933f941?raw)
