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:public_key scope to use this endpoint.
post/user/keys
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/user/keys
- Auth: none declared
Request body
Example request
{
"title": "Personal MacBook Air"
}Response
Response
Changes
No recorded changes to this operation across all 23 revisions of this API.