octokit.rest

List email addresses for the authenticated user

Lists all of your email addresses, and specifies which one is visible to the public. 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/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