Should use ssl if API endpoint uses https