List public SSH keys for the authenticated user
GET {{baseUrl}}/user/keys?per_page=30&page=1
Lists 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.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
per_page | number | Results per page (max 100) | |
page | number | Page number of the results to fetch. |
RESPONSES
status: OK
[{"key_id":"012345678912345678","key":"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234","id":2,"url":"https://api.github.com/user/keys/2","title":"ssh-rsa AAAAB3NzaC1yc2EAAA","created_at":"2020-06-11T21:31:57Z","verified":false,"read_only":false},{"key_id":"012345678912345608","key":"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJy931234","id":3,"url":"https://api.github.com/user/keys/3","title":"ssh-rsa AAAAB3NzaC1yc2EAAB","created_at":"2020-07-11T21:31:57Z","verified":false,"read_only":false}]