Exposing core.callApi method