chg API endpoints to https