v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.2 MB
users

Create a SSH signing key for the authenticated user

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.

post/user/ssh_signing_keys

Request body

titlestring

A descriptive name for the new key.

keystring required

The public SSH key to add to your GitHub account. For more information, see "Checking for existing SSH keys."

Example request

{
  "title": "Personal MacBook Air"
}

Response

Response

keystring required
idinteger required
titlestring required
created_atstring date-time required