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

# Create encryption key

`POST /v2/company/encryption-keys`

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.net/kaleyra/apis/kaleyra-io-sms-apis.md) · [All operations](https://skmtc.net/kaleyra/apis/kaleyra-io-sms-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kaleyra/kaleyra-io-sms-apis/versions/d9b785884d03/schema)
