---
title: "/sshkeys/add"
method: POST
path: "/sshkeys/add"
---

# /sshkeys/add

`POST /sshkeys/add`

Add a new SSH Key

## Request body

- AddSshKeyRequest
  - `name` string, required — The name of the SSH Key.
  - `public_key` string, required — The public key.

## Response `200`

Returns a AddSshKeyResponse object

- AddSshKeyResponse
  - `id` string, required — The ID of the SSH Key.

## Changes

> 50 revisions in range; 1 could not be searched.

- **2025-08-19** `3628781ac93f` — 1 info
  - api operation id `sshkeys/add` removed and replaced with `SshKeysAdd`
- **2025-08-13** `f8304f323e7b` — 1 info
  - api operation id `Add` removed and replaced with `sshkeys/add`
- **2024-05-14** `bd94669d4159` — 1 warning
  - removed the request property `private_key`
- **2024-05-09** `94c632679032` — 1 info
  - endpoint added
- **2024-01-11** `7d5677457388` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/shadeform/apis/shadeform-api/changes/sshkeys/add/post.md)

---

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