Process webhook notifications
Whether you’re creating middleware for integrating Kontent.ai with another service or just developing custom actions, you'll likely want to react to webhooks based on the contents of the notifications.
In this video, Jake Kula, our Presales Engineer, shows you how to work with the payload that you receive when the webhook is triggered.You’ll see Jake using a set of models that describe the webhook notification object in the JSON payload. This makes processing the payload easier.
To do the same in your code, we recommend you use the Kontent.ai webhook helper to simplify your work. For example, you can add
import { IWebhookResponse } from 'kontent-ai/webhook-helper'
to your code and then work with the typed IWebhookResponse
model.