# Could someone help me to create a Webhook?

**URL:** <https://discourse.getcockpit.com/t/could-someone-help-me-to-create-a-webhook/1356>\
**Category:** Support\
**Created:** [April 14, 2020, 2:26pm UTC](https://discourse.getcockpit.com/t/could-someone-help-me-to-create-a-webhook/1356 "2020-04-14T14:26:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alissong](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@alissong](https://discourse.getcockpit.com/u/alissong)\
**Post date:** [April 14, 2020, 2:26pm UTC](https://discourse.getcockpit.com/t/could-someone-help-me-to-create-a-webhook/1356/1 "2020-04-14T14:26:17Z")

</div>

I’m trying to send a request to an endpoint whenever a create a news in Cockpit, but it’s not working. That’s my webhook configuration:

 ![webhook](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/f4a43b9cff48b8e7ab0abaf1613f3702fef776bf.png)

‘noticias’ is the name of the collection I created.

Is that configuration enough for my endpoint to receive a request from Cockpit when I create an entry in the collection “noticias”? After read the official doc, I understood that yes. My endpoint, however, doesn’t receive any request.

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![Saunved](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/saunved/32/582_2.png) [@Saunved](https://discourse.getcockpit.com/u/Saunved)\
**Post date:** [May 11, 2020, 7:27pm UTC](https://discourse.getcockpit.com/t/could-someone-help-me-to-create-a-webhook/1356/2 "2020-05-11T19:27:40Z")

</div>

Stuck at a similar issue. My endpoint doesn’t receive any ping when I create a new entry in the collection. The event I am using is `collections.save.after.<collection-name>`

**Edit**  
I am not sure whether this is a configuration that can be changed, but I believe Cockpit webhooks do not work with local development.

What I did was use ngrok to create a temporary tunnel to localhost and pointed the webhook to the ngrok public URL. That seemed to work and it fired correctly.

Is this behaviour common to all webhooks or is this undocumented in Cockpit?

TLDR;  
Use ngrok to create a public URL for your localhost and attach the webhook to that public URL to be able to test locally.
