v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-01-0382859610.0 MB
users

Create a SSH signing key for the authenticated user

Creates an SSH signing key for the authenticated user's GitHub account. You must authenticate with Basic Authentication, or you must authenticate with OAuth with at least write:ssh_signing_key scope. For more information, see "Understanding scopes for OAuth apps."

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