Skip to main content
GET
/
user
/
emails
List email addresses
curl --request GET \
  --url https://gogs.example.com/api/v1/user/emails \
  --header 'Authorization: <api-key>'
[
  {
    "email": "[email protected]",
    "verified": true,
    "primary": true
  }
]

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Response

200 - application/json

Success

email
string<email>
verified
boolean
primary
boolean