I have a Vercel API endpoint for my Webflow website, I want to create a webhook that sends a POST request to that endpoint whenever a particular CMS collection has a new item or an existing item is changed.
Can I create a single webhook with “collection_item_created” AND “collection_item_changed” as triggertypes? Or do I have to specify separate webhooks for each trigger type?
In Webflow you define each of the webhooks individually, giving it the webhook URL to notify for each event your setup a webhook for. That gives you a lot of control.
On the vercel side, you need only a single webhook that can receive all of those.
It can differentiate by looking at the content of what was sent, the webhook type is identified in the JSON package.
Important, make sure to return a 200 from vercel when you receive it, or Webflow will keep resending it every few minutes until it gives up.