---
title: "Add SSH Public Key"
method: POST
path: "/v0/users/{user_id}/keys"
tags: ["users"]
---

# Add SSH Public Key

`POST /v0/users/{user_id}/keys`

Adds an SSH public key to the authenticated user's account.
The key can be used for Git operations and SFTP access.

## Path parameters

- `user_id` string, required

## Request body

- AddSSHKeyRequest
  - `key` string, required — SSH public key content

## Response `201`

- AddSSHKeyResponse
  - `id` string, required — SSH key ID

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/pantheon/apis/pantheon-public-api-service.md) · [All operations](https://skmtc.net/pantheon/apis/pantheon-public-api-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pantheon/pantheon-public-api-service/revisions/94758829689e/schema)
