Create a public SSH key for the authenticated user

POST {{baseUrl}}/user/keys

Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least write:public_key scope.

Request Body

{"key"=>"<string>", "title"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{&quot;key_id&quot;:&quot;012345678912345678&quot;,&quot;key&quot;:&quot;2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234&quot;,&quot;id&quot;:2,&quot;url&quot;:&quot;https://api.github.com/user/keys/2&quot;,&quot;title&quot;:&quot;ssh-rsa AAAAB3NzaC1yc2EAAA&quot;,&quot;created_at&quot;:&quot;2020-06-11T21:31:57Z&quot;,&quot;verified&quot;:false,&quot;read_only&quot;:false}