removes beta from endpoint url