Add "get email" api endpoint