# Webhook binding

**URL:** <https://community.openhab.org/t/webhook-binding/137334>\
**Category:** Bindings\
**Tags:** httpbinding1, webhook, openhab3\
**Created:** [July 13, 2022, 2:24pm UTC](https://community.openhab.org/t/webhook-binding/137334 "2022-07-13T14:24:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrt54g](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/2acd7d/32.png) [@wrt54g](https://community.openhab.org/u/wrt54g)\
**Post date:** [July 13, 2022, 2:24pm UTC](https://community.openhab.org/t/webhook-binding/137334/1 "2022-07-13T14:24:53Z")

</div>

Is there a webhook binding available for openhab 3? I am looking for this for a while now.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 13, 2022, 3:37pm UTC](https://community.openhab.org/t/webhook-binding/137334/2 "2022-07-13T15:37:38Z")

</div>

openHAB implements a full REST API. What are you looking for from a Webhook binding?

---

<div class="post-metadata">

**Author:** ![HaKuNa](https://community.openhab.org/letter_avatar_proxy/v4/letter/h/c77e96/32.png) [@HaKuNa](https://community.openhab.org/u/HaKuNa)\
**Post date:** [July 13, 2022, 3:47pm UTC](https://community.openhab.org/t/webhook-binding/137334/3 "2022-07-13T15:47:34Z")

</div>

> [@\[webhook\] New, very simple binding for listening incomming http requests](https://community.openhab.org/t/webhook-new-very-simple-binding-for-listening-incomming-http-requests/123597):
>
> Hello, I have scratched a simple binding for listening to incoming http requests. What problem does it solve? There are quite a few devices which are able to perform http requests on a given webhook (like Synology Surveillance Station in rules or some intercoms/ip doorphones like akuvox). Those httprequest cannot be simple utilized in openhab straight away. You could translate it at nginx level from the simple form of http get/post those devices can perform to openhab REST APIs or create a si…

---

<div class="post-metadata">

**Author:** ![wrt54g](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/2acd7d/32.png) [@wrt54g](https://community.openhab.org/u/wrt54g)\
**Post date:** [July 13, 2022, 4:51pm UTC](https://community.openhab.org/t/webhook-binding/137334/4 "2022-07-13T16:51:31Z")

</div>

@rlkoshak A binding that could call webhooks from other servers.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 13, 2022, 4:52pm UTC](https://community.openhab.org/t/webhook-binding/137334/5 "2022-07-13T16:52:59Z")

</div>

In that case see [HTTP - Bindings | openHAB](https://www.openhab.org/addons/bindings/http/) and [Actions | openHAB](https://www.openhab.org/docs/configuration/actions.html#http-actions) if you want to make web calls from a rule.

---

<div class="post-metadata">

**Author:** ![wrt54g](https://community.openhab.org/letter_avatar_proxy/v4/letter/w/2acd7d/32.png) [@wrt54g](https://community.openhab.org/u/wrt54g)\
**Post date:** [July 13, 2022, 5:55pm UTC](https://community.openhab.org/t/webhook-binding/137334/6 "2022-07-13T17:55:06Z")

</div>

@rlkoshak I created a JavaScript script in a rule, but that did not work. How do I run these actions from my rule?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [July 13, 2022, 7:02pm UTC](https://community.openhab.org/t/webhook-binding/137334/7 "2022-07-13T19:02:47Z")

</div>

See [JavaScript Scripting - Automation | openHAB](https://www.openhab.org/addons/automation/jsscripting/#http-actions). That should work for either version of ECMAScript.
