List public keys for a user
GET
/users/{username}/keys
Lists the verified public SSH keys for a user. This is accessible by anyone.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”username
required
string
The handle for the GitHub user account.
Query Parameters
Section titled “Query Parameters”per_page
integer
The number of results per page (max 100). For more information, see “Using pagination in the REST API.”
page
integer
The page number of the results to fetch. For more information, see “Using pagination in the REST API.”
Responses
Section titled “Responses”Response
Media typeapplication/json
Array<object>
Key SimpleKey Simple
object
id
required
integer
key
required
string
created_at
string format: date-time
last_used
string format: date-time
Examples
Exampledefault
[ { "id": 1, "key": "ssh-rsa AAA..." }]Headers
Section titled “Headers”Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"