---
title: "Get encryption key by ID"
method: GET
path: "/encryptionKeys/view/{encryptionKeyId}"
tags: ["EncryptionKeys"]
---

# Get encryption key by ID

`GET /encryptionKeys/view/{encryptionKeyId}`

## Path parameters

- `encryptionKeyId` integer, required

## Response `200`

Encryption key response

- EncryptionKey
  - `id` integer
  - `uuid` string, uuid
  - `type` 'pgp' | 'smime'
  - `encryption_key` string
  - `revoked` boolean
  - `expires` integer, nullable — UNIX timestamp or null of there is no expiration
  - `owner_id` integer
  - `owner_model` 'Organisation' | 'User' | 'Individual' | 'EncryptionKey' | 'Role' | 'Tag' | 'SharingGroup' | 'Brood'
  - `created` string, datetime
  - `modified` string, datetime

## Other responses

- `403` — Authentication failed. Please make sure you pass the API key of an API enabled user along in the Authorization header.
- `405` — Method not allowed. Your User Role is not allowed to access this resource.
- `default` — Unexpected API error

---

[API](https://skmtc.net/cerebrate-project/apis/cerebrate-project-api.md) · [All operations](https://skmtc.net/cerebrate-project/apis/cerebrate-project-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cerebrate-project/cerebrate-project-api/versions/50eb2c1b04b4/schema)
