---
title: "POST /keys"
method: POST
path: "/keys"
tags: ["Keys"]
---

# POST /keys

`POST /keys`

## Request body

- ClientEncryptionKeyRequest
  - `expires_at` string, date-time, nullable

## Response `201`

Created

- ClientEncryptionKeyResponse
  - `key_id` string, uuid
  - `public_key_pem` string, nullable
  - `expires_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Client Error
- `500` — Server Error

---

[API](https://skmtc.net/basistheory/apis/basis-theory-api.md) · [All operations](https://skmtc.net/basistheory/apis/basis-theory-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/basistheory/basis-theory-api/revisions/cbb8e098b560/schema)
