htc rest api