---
title: "Create an SSH key"
method: POST
path: "/me/ssh-keys"
tags: ["me"]
---

# Create an SSH key

`POST /me/ssh-keys`

Create an SSH public key for the current authenticated user.

## Request body

- CreateSSHKeyRequest
  - `sshKey` string, required — The full SSH public key supported by OpenSSH (e.g., ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256).
  - `name` string, required — Human-readable name for the SSH key.

## Response `201`

Successfully created an SSH key.

- CreateSSHKeyResponse
  - `id` string, uuid — The unique identifier (UUID) of the newly created SSH key.

## Other responses

- `400` — - [group:**request**, code:**0**]: Invalid field in the request. - [group:**request**, code:**1**]: The request body is required. - [group:**ssh-key**, code:**0**]: Invalid SSH key.
- `403` — - [group:**ssh-key**, code:**500**]: The maximum number of SSH keys per user has been reached.
- `500` — - [group:**ssh-key**, code:**1000**]: Create SSH key encountered DB error. - [group:**ssh-key**, code:**1200**]: Get SSH key count encountered DB error.

---

[API](https://skmtc.net/gmicloud/apis/cluster-engine-api.md) · [All operations](https://skmtc.net/gmicloud/apis/cluster-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmicloud/cluster-engine-api/versions/bcbab016469f/schema)
