ssl endpoint for api

Improves guarantee of integrity for data