---
title: "Adds public ssh key"
method: POST
path: "/ssh_key/"
tags: ["SshKey"]
---

# Adds public ssh key

`POST /ssh_key/`

## Headers

- `X-Fields` string, mask

## Request body

- SshKey
  - `clientId` integer
  - `name` string, required
  - `publicKey` string, required — Public key content (RSA, Ed25519, or ECDSA supported)

## Response `201`

Public ssh key successfully added

- SshKeyResponseDump
  - `isValid` boolean
  - `name` string
  - `publicKey` string
  - `sshKeyId` integer

## Other responses

- `400` — Unable to added public ssh key
- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.

---

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