---
title: "Test a kek"
method: POST
path: "/dek-registry/v1/keks/{name}/test"
tags: ["Key Encryption Keys (v1)"]
---

# Test a kek

`POST /dek-registry/v1/keks/{name}/test`

## Request

- Base URL: `https://psrc-00000.region.provider.confluent.cloud`
- URL: `https://psrc-00000.region.provider.confluent.cloud/dek-registry/v1/keks/{name}/test`
- Auth: one of:
  - HTTP basic
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.confluent.cloud/sts/v1/oauth2/token`

## Path parameters

- `name` string, required

## Response `200`

The test response

- Kek
  - `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
  - `ts` integer: Timestamp of the kek
  - `deleted` boolean: Whether the kek is deleted

## Other responses

- `422`: Error code 42271 -- Invalid key
- `500`: Error code 50070 -- Dek generation error

---

[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/018ddeaf203e?raw)
