How to fetch email address in confluence server?

I need to fetch email address using confluence server REST API.
I tried this rest/api/user?username=admin&expand=details.personal,details.business but it doesn’t return email address in response.

Can anyone help with any workaround for fetching email address?

Hi @VivekGupta

please try this non public api

rest/mobile/1.0/profile/<USERNAME>

Cheers
Adam