# How to make webhooks in nodered

**URL:** <https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855>\
**Category:** General\
**Created:** [29 March 2024 18:40 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855 "2024-03-29T18:40:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abedmalak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/abedmalak/32/89469_2.png) [@abedmalak](https://discourse.nodered.org/u/abedmalak)\
**Post date:** [29 March 2024 18:40 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855/1 "2024-03-29T18:40:47Z")

</div>

![Screenshot 2024-03-28 133706](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/0/405108fb1203652a1410978a76e25275bfad9188.png)  
this is how my flow is designed, how can I replicate the first step ( letting a webhook trigger the flow and accept a payload?? )

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [29 March 2024 18:54 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855/2 "2024-03-29T18:54:27Z")

</div>

- I have moved this away from **Developing Nodes**
- I have removed all tags that are not relevant.

If you want your flow to be triggered by a webhook, you should look at the **HTTP IN** node.  
This node allows Node RED to receive HTTP requests, giving you the ability to respond, such as triggering any actions in your flow.

I won't go into the security of setting this up - as your source will need to see Node RED for it to be achieved - and that is a different beast all together - covered many many many times on the forums.

---

<div class="post-metadata">

**Author:** ![abedmalak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/abedmalak/32/89469_2.png) [@abedmalak](https://discourse.nodered.org/u/abedmalak)\
**Post date:** [29 March 2024 19:02 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855/3 "2024-03-29T19:02:34Z")

</div>

ooo thanks! is there a specific tutorial that will help me do what you mentioned? You nailed it with your response, I never new http in could do that

I was thinking of using an API gateway in the middle to hide the nodered server

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [29 March 2024 19:05 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855/4 "2024-03-29T19:05:49Z")

</div>

Sure, if you go here...

[https://cookbook.nodered.org](https://cookbook.nodered.org)

And scroll down to **HTTP endpoints** - it gives various examples on how it can be used, just tailor the examples to your needs 👍

In essence, the **HTTP IN** node listens on a URI `http://x.x.x.x:1880/<Your-Chosen-Prefix>`  
you then hang anything on the back of it.

But again - put security top priority!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 May 2024 19:06 UTC](https://discourse.nodered.org/t/how-to-make-webhooks-in-nodered/86855/5 "2024-05-28T19:06:23Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
