---
title: "Create encryption key"
method: POST
path: "/v2/company/encryption-keys"
tags: ["Company"]
---

# Create encryption key

`POST /v2/company/encryption-keys`

## Request

- Base URL: `https://api.sandbox.eu.bandyer.com`
- URL: `https://api.sandbox.eu.bandyer.com/v2/company/encryption-keys`
- Auth: API key in header `apikey`

Create a new encryption key for a company.

## Request body

- object
  - `public_key` string, required: The public key must be a valid RSA(any size) in PEM format, use \n to separate each line and concatenate it in one row.

## Response `200`

- object
  - `key_id` string: Key id.
  - `creation_date` string, date-time: Creation date of the key.

## Other responses

- `401`: Unauthorized
- `422`: Unprocessable Content
- `429`: Too Many request

---

[API](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2.md) - [All operations](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/kaleyra/apis/kaleyra-video-rest-api-v2/revisions/4424fd54ae42?raw)
