Forgejo API
GET/admin/emails

List all users' email addresses

Lists email addresses associated with all users. Use page and limit to paginate the results and retrieve each address with its verification and primary-address status. Access is restricted to administrative callers.

2 parameters
pageintegeroptional
The 1-based page number of email results to return.
limitintegeroptional
The number of email results to return per page.

2 status codes
200Returns an array of email objects containing each address, its primary and verified status, the associated user ID, and username.
emailstringoptional
primarybooleanoptional
user_idintegeroptional
usernamestringoptional
verifiedbooleanoptional
403Returned when the authenticated user is not permitted to list users' email addresses.
messagestringoptional
urlstringoptional

Error handling

A 403 is returned when the authenticated user does not have permission to view users' email addresses. page and limit must be integer values when supplied.