you can do it from the RPI using this How to access Cayenne API using Insomnia, Node-red and Thunkable or Data types for Cayenne MQTT API
you can do it from the RPI using this How to access Cayenne API using Insomnia, Node-red and Thunkable or Data types for Cayenne MQTT API