octokit.rest

List public keys for a user

Lists the verified public SSH keys for a user. This is accessible by anyone.

Parameters

string The token will be passed in the authorization header.

string

integer Results per page (max 100)

integer Page number of the results to fetch.

Request

GET https://api.github.com/users//keys
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest


Example Response

Status: 200
[
  {
    "id": 1,
    "key": "ssh-rsa AAA..."
  }
]

See documentation on GitHub developer guides