"Get a user by id" can't get email


I want to use the “Get a user by id” API to get the email of a user.

I can get the user information, but the email is not included in the response.
There is also no parameter to be given. Is there any other setting I need to do?

1 Like

The email address is available only in the admin/user route. It’s behind an extra click in the ux. You can likely figure it out using How to reverse engineer the Discourse API


I understand it perfectly.

I was able to get the email address using /u/:username/emails.json.

Thank you very much for your answer.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.