Webhook/curl/json/rest api ... from synology actions to trigger a script in Home Assisant

from my synology system (surveillance) i want to call a script based on a action, see screenshot below

but for some reason, when i click on test button if fails, i think i am missing some stuff maybe, but i dont know what :frowning:

I believe you have to authenticate with Authorization: Bearer TOKEN_KEY
As far as I know you cannot use the API with your normal login credentials.

I know it’s been a while since you posted this and you’ve probably found the solution already, however, as I’ve been working on this today I thought the solution might help someone else.

The action needs to be set up like this:

Then, in your automation:

- alias: 'Carpark Camera Alert'
  initial_state: 'on'
    - platform: webhook
      webhook_id: carpark_camera
    condition: and


thx, yes, with http it works indeed, i use https on my local lan, then it doenst work
but i have a workaround anyway now

to use nabucasa url
i have now a small webserver enabled on my synology, i have a php file there that i call from the actions, in that .php file , i can call my https with POST, in php you can define to ignore invalid certificates…