How to setup restAPI to receive Webhook push

I would like to send a push message via webhook to:

http://192.168.178.143:8080/rest/items/Bewegungsmelder_Reolink_Trigger

Unfortunately it doesn’t work out, so I’m wondering how to configure the RestAPI in openHAB 3.2.

There is no configuration for the REST API. It just is and what it provides is what you get.

In OH 3.2 I don’t think there is any option, certainly no official option. There is a REST API but you have to use POST to send a command to an Item and PUT to post and update to an Item. You can get more details in MainUI under Developer Tools API Explorer.

In OH 4 there is a Webhook binding you can install from the marketplace. Webhook HTTP binding

In OH 5 I think they are adding a webhook REST endpoint that lets you send commands or update an Item using HTTP GET.

There used to be an unofficial and unsupported hack using BasicUI, but I don’t remember when that stopped working and since it’s years since I last touched OH 3 I don’t have anywhere to look.

Thanks for the quick reply.

I just did a test with API Explorer - this works as expected.

2025-05-28 19:12:16.355 [INFO ] [openhab.event.ItemCommandEvent      ] - Item 'Bewegungsmelder_Reolink_Trigger' received command ON

However, when the Reolink Cam sends the message nothing happens. Is this because there is no Authorization like in API Explorer?


I thought with this setting, there is no need to authenticate.

Or maybe there is some other workaround…

It doesn’t work because the Reolink uses an HTTP GET request. The OH REST API requires an HTTP POST request.

Ok, that’s bad.

Is there no other possibility to receive the motion sensor status message?

I listed all the options above.

  • Search the forum for the BasicUI hack and see if that still works.

  • Upgrade to OH 4 and use the Webhook add-on.

  • Upgrade to OH 5 and use the new native REST API endpoint that supports HTTP GET requests.

Many thanks for your support.