common api_call for auth module