creates isApiCall