Strip endpoint url