---
title: "Add an SSH key"
method: POST
path: "/keys/add"
tags: ["Utilities"]
---

# Add an SSH key

`POST /keys/add`

Add a new SSH public key to the authenticated user's organization

## Request body

- union
  - object
  - ThundertypesSSHKeyAddRequest
    - `name` string, required
    - `public_key` string, required

## Response `200`

OK

- ThundertypesSSHKeyAddResponse
  - `key` ThundertypesSSHKey
    - `created_at` integer
    - `fingerprint` string
    - `id` string
    - `key_type` string
    - `name` string, required
    - `public_key` string, required
  - `message` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `409` — Conflict
- `500` — Internal Server Error

---

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