Automation on insert / update record

my use case is very simple

I want to invoke a REST API on every trigger of Record Created and Updated .(Whenever new record is added in Sheet or existing record is updated )

I should be able to read all the column data of a created / updated row and pass it to my API payload as a POST request

Thanks

Look at the input.config documentation, that should be enough to get you started. Just note that your code needs to go into the “run a script” applet under the automations tab, unless you want to make an app.

Can you please point me to some example / sample code ?