Update api endpoints to use TLS/SSL