ESP8266 : using syncAll() function

you need to use arduino-esp32/libraries/WiFiClientSecure at master · espressif/arduino-esp32 · GitHub and develop your own code for the above endpoint.
How to access Cayenne API using Insomnia, Node-red and Thunkable