Fix: needed https scheme for api endpoints

Fixed: changed scheme api endpoints http=>https for fixing  "You must use https:// to access this API endpoint"