octokit.rest

List public email addresses for the authenticated user

Lists your publicly visible email address, which you can set with the Set primary email visibility for the authenticated user endpoint. This endpoint is accessible with the user:email scope.

Parameters

string The token will be passed in the authorization header.

integer Results per page (max 100)

integer Page number of the results to fetch.

Request

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


Example Response

Status: 200
[
  {
    "email": "octocat@github.com",
    "verified": true,
    "primary": true,
    "visibility": "public"
  }
]

See documentation on GitHub developer guides