---
title: "Create User Key"
method: POST
path: "/v1/user/keys/"
tags: ["User"]
---

# Create User Key

`POST /v1/user/keys/`

Create a new user public key after validating and computing public_key_id.

## Request body

- CreateUserPublicKeyRequest — Request schema for creating user public key.
  - `public_key_openssh` string, required

## Response `201`

Successful Response

- UserPublicKeyResponse — Public view of a user's public key. Returns only the fields required by the consumer: id, the OpenSSH one-line key and the creation timestamp.
  - `public_key_id` string, required
  - `public_key_openssh` string, required
  - `created_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/flower/apis/superlink-api.md) · [All operations](https://skmtc.dev/flower/apis/superlink-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flower/superlink-api/revisions/adf853ac4f41/schema)
