What are Webhooks and how to use them in Strapi

Webhooks is a term you might have heard before in other apps, and you might have been hooked on it (pun intended ๐Ÿ˜‰), wondering what it is about. We are very excited to announce that the Webhooks feature is now available in the latest version of Strapi released today! The full changelog can be found in the repository here.


This is a companion discussion topic for the original entry at https://strapi.io/blog/webhooks

Hi, i am new to strapi and couldnโ€™t understand how to use webhooks.

Requirement: whenever admin adds a content in collection (notifications), the event should be triggered with the latest data(eg: we are back with new offers) and it should be visible on react/next js website without refreshing the webpage.

We have created the webhook. But do we subscribe to the data that is sent from it?

Do we need another api endpoint for it?

Just use SWR

Created a Webhook to post change notifications to Slack but it doesnโ€™t work.

Also running Trigger to test shows Error 400: no_text

2 Likes

Yep, same problem, my be possible to add data from entry to hook data?