I managed to get the user's email address using the user.fields argument as follows:
https://api.x.com/2/users/me?user.fields=confirmed_email
This however only returns the email if the user has confirmed it on twitter. See the link below for more fields that you can query for.