I'm trying to get a user's email address from GitHub, and I'm just testing the process using Postman. I have a token that has user and user:email scopes, and hitting https://api.github.com/user gives me the user's info. Private emails aren't visible at that endpoint, so I'm also hitting https://api.github.com/user/emails. The email endpoint gives me a 404.
The response headers that come back with the 404 seem to say I have the right perms:
X-Accepted-OAuth-Scopes →user, user:email
There is an email set up in the account. What could be causing the 404?
Update: The troubleshooting page suggests that third-party application restrictions might be to blame. The account I'm trying to access is part of an organization, but "Third-party application access policy" in the organization is set to "No restrictions".