Check if api endpoint is available before sync