---
title: "Add a new public SSH key to a user"
method: POST
path: "/ssh_keys"
tags: ["SSH Keys"]
---

# Add a new public SSH key to a user

`POST /ssh_keys`

## Request body

- object
  - `value` string, required — The value of the ssh key.
  - `title` string — The title of the ssh key.
  - `uuid` string — The uuid of the user.

## Response `201`

The newly created ssh key.

- SSHKey — The ssh key object.
  - `key_id` integer — The ID of the public key.
  - `uid` integer — The internal user ID.
  - `fingerprint` string — The fingerprint of the public key.
  - `title` string — The title of the public key.
  - `value` string — The actual value of the public key.
  - `changed` string — The time of the last key modification (ISO 8601)

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
