I got this working. Similar automation setup as yours.
In flic i created an internet request and selected POST.
URL: http://homeassistant:8123/api/webhook/testpin
Headers I left blank
Body -X
Content type needed a space to save it, don’t know why?
Validate certificates false