How to send and receive data from your automations using APIs