Skip to main content

keys

Overview

Namekeys
TypeResource
Idgithub.users.keys

Fields

NameDatatype
idinteger
keystring
read_onlyboolean
titlestring
urlstring
verifiedboolean
created_atstring

Methods

NameAccessible byRequired ParamsDescription
get_public_ssh_key_for_authenticated_userSELECTkey_idView extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least read:public_key scope.
list_public_keys_for_userSELECTusernameLists the verified public SSH keys for a user. This is accessible by anyone.
list_public_ssh_keys_for_authenticated_userSELECTLists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least read:public_key scope.
create_public_ssh_key_for_authenticated_userINSERTdata__keyAdds 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.
delete_public_ssh_key_for_authenticated_userDELETEkey_idRemoves a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope.