---
title: "Registers a new public SSH key for the authorized user"
method: POST
path: "/user/keys"
tags: ["User API"]
---

# Registers a new public SSH key for the authorized user

`POST /user/keys`

## Request body

- AddSSHKeyRequest
  - `title` string — The title/name of the SSH key
  - `content` string, required — The SSH public key content

## Response `201`

- PublicSSHKeyView
  - `url` string — API endpoint to GET this object
  - `html_url` string — Web URL to view this object in Buddy.works
  - `id` integer — The ID of the SSH key
  - `title` string — The title/name of the SSH key
  - `content` string — The SSH public key content

---

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