add API endpoint to get user information