How to provision Strapi webhooks programatically?

Hi everyone,

I know it is possible to create the Strapi webhooks manually via the UI

I want to create the webhook configurations automatically via code for a reliable system.

Is there any way to do it and if yes how ?

If there is no typescript way to do it, maybe a rest way to create them through the api? If this is possible I can build a terraformmodule to provision the webhooks

Thanks