Automations API

Closing, as I found duplicate: Automations as Code or API