api to get user details.