---
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

## Changes

- **2025-10-03** `0a21fdeb70fc` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/ubicloud/apis/clover-api/changes/project/:project_id/ssh-public-key/post.md)

---

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