---
title: "Register a SSH public key"
method: POST
path: "/project/{project_id}/ssh-public-key"
tags: ["SSH Public Key"]
---

# Register a SSH public key

`POST /project/{project_id}/ssh-public-key`

## Request body

- SshPublicKeyCreate
  - `name` string, required
  - `public_key` string, required

## Response `200`

An SSH Public Key

- SshPublicKey
  - `id` string, required — ID of the SSH public key
  - `name` string, required — Name of the SSH public key
  - `public_key` string — SSH public key data

## Other responses

- `default` — An error response

---

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