Email address no longer being exposed on Discourse API

(Rogelio J. Samour) #1

Hello there! I’m fairly new to Discourse, but I’ve been using the discourse_api’s user GET endpoint to sync with my Rails app. Up until a few versions ago, the GET call would return all of that user’s attributes, including the email.

That is no longer the case. Did I miss an obvious change on the API? Or was this something that was never meant to be part of the public interface?

Update: I’m on 1.1.0.beta5 right now.

API Endpoint to Retrieve Community Emails Addresses
(Régis Hanol) #2

There has indeed been a change regarding emails in the API. They now are available via the /users/<username>/emails endpoint.

(Régis Hanol) #3

(Kane York) #4

@therubymug Note also that the action of viewing the email is logged in the staff action logs.