I am creating a collection that needs to trigger an event on an external resource upon creation.
I thought that Webhooks would be the ideal candidate but I have realised that it may not be as straightforward as I initially imagined.
The issue I am having is that I cannot narrow down the collection type that will trigger the Webhook i.e. if I set-up the Webhook with the entry.create event , I will be calling the external API on every entry creation not just the collection I want to initiate the event. Is there a way to filter what entries trigger the Webhook?
As an alternative I am considering using a Middleware, after await next(), to trigger the external event.
What is the usual process to follow in this scenario? I initially thought about creating an end-point in Strapi to use as the Webhook url, but that may add additional unnecessary load on Strapi.
Thoughts?
This topic has been created from a Discord post (1245325356467097601) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord