By default http is used for api, but you can pass a param to use ssl. This is the same behaviour that we have currently in robot.