users
Create a public SSH key for the authenticated user
Adds a public SSH key to the authenticated user's GitHub account.
OAuth app tokens and personal access tokens (classic) need the write:gpg_key scope to use this endpoint.
post/user/keys
Request
- Base URL: http://HOSTNAME/api/v3
- URL: http://HOSTNAME/api/v3/user/keys
- Auth: none declared
Request body
Example request
{
"title": "Personal MacBook Air"
}Response
Response
Changes
No recorded changes to this operation across all 50 revisions of this API.