---
title: "Get Encryption Key"
method: GET
path: "/account-service/api/data-protect/keys/{id}"
tags: ["Encryption Keys", "Encryption Keys"]
---

# Get Encryption Key

`GET /account-service/api/data-protect/keys/{id}`

Get an AI encryption key by ID.

## Path parameters

- `id` integer, required

## Response `200`

Successful Response

- EncryptionKeyView — A model representing an encryption key. Inherits from: BaseView: The base model containing common fields. Attributes: public_key (str): The public key. private_key (str): The private key. key_status (EncryptionKeyStatus): The status of the key. key_type (EncryptionKeyType): The type of the key.
  - `id` integer, nullable — The unique identifier of the resource
  - `status` integer, nullable — The status of the resource
  - `createTime` string — The creation time of the resource
  - `updateTime` string — The last update time of the resource
  - `publicKeyValue` string, nullable — The public key
  - `privateKeyValue` string, nullable — The private key
  - `keyStatus` 'ACTIVE' | 'PASSIVE' | 'DISABLED' | 'DELETED'
  - `keyType` 'MSG_PROTECT_SHIELD' | 'MSG_PROTECT_PLUGIN'

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/privacera/apis/paig-server.md) · [All operations](https://skmtc.net/privacera/apis/paig-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/privacera/paig-server/versions/e3d2c30ceace/schema)
