users

Get a public SSH key for the authenticated user

View extended details for a single public SSH key.

OAuth app tokens and personal access tokens (classic) need the read:public_key scope to use this endpoint.

get/user/keys/{key_id}

Request

  • Base URL: https://api.github.com
  • URL: https://api.github.com/user/keys/{key_id}
  • Auth: none declared

Path parameters

key_idinteger required

The unique identifier of the key.

Response

Response

keystring required
idinteger required
urlstring required
titlestring required
created_atstring date-time required
verifiedboolean required
read_onlyboolean required
last_usedstring date-time nullable

Changes

No recorded changes to this operation across all 23 revisions of this API.