---
title: "Create a SSH signing key for the authenticated user"
method: POST
path: "/user/ssh_signing_keys"
tags: ["users"]
---

# Create a SSH signing key for the authenticated user

`POST /user/ssh_signing_keys`

Creates an SSH signing key for the authenticated user's GitHub account.

OAuth app tokens and personal access tokens (classic) need the `write:ssh_signing_key` scope to use this endpoint.

## Request body

- object
  - `title` string — A descriptive name for the new key.
  - `key` string, required — The public SSH key to add to your GitHub account. For more information, see "[Checking for existing SSH keys](https://docs.github.com/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys)."

## Response `201`

Response

- SshSigningKey — A public SSH key used to sign Git commits
  - `key` string, required
  - `id` integer, required
  - `title` string, required
  - `created_at` string, date-time, required

## Other responses

- `304` — Not modified
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

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