Control and create automations over HA's api?

Hey all,

I'm aware HA exposes the api/ endpoint so we can remotely check sensors, states, etc. I was wondering if there's an endpoint we can use to create or edit automations.

Thanks.

Why when you can get access to HA easily from anywhere? This is a genuine question, I can't see any reason why you would want that.

So we're able to deploy our own frontend app using HA as a backend engine

I just use webhooks for that.

POST
/api/events/<event_type>

EDIT: This went missing when I had to retype my message, but you'd do this by firing a custom event (just mentioning it explicitly in case it's not clear for anybody reading this).

But you should favour the websocket API where you can do the same thing.