What can you do with webhooks?
Jan Cerman 1 minute Webhooks are versatile and you can use them in many scenarios. Let's take a look at a few examples of what's possible.
What can you do with webhooks? Here are a few example scenarios:
Update a search index with your content using services like Algolia, Azure Search Index, and more.
Notify your team by sending an email, posting a message to a Slack channel, or moving a card inside Trello.
Schedule a social media post featuring the newly published content item.
Invalidate your app’s cache to make sure users see the latest content.
Trigger a new build process and redeploy your application.
You can also react to workflow changes in your content items to:
How webhooks work in a nutshell
Kontent.ai sends an HTTP POST request to the webhook URL immediately after a specific event occurs in your Kontent.ai project.
Your app receives the HTTP POST request with JSON payload.
The payload contains information about the affected objects and the type of change.
The request’s header contains a payload signature you can use to verify the message .
Your app responds to Kontent.ai and processes the request. For example, you can go through the payload and request the latest content .
If your application is unavailable or fails to process the request, the request is sent again as per the retry policy .
See how you can create a webhook endpoint in your app in the next lesson.
Sign in with your Kontent.ai credentials or sign up for free to unlock the full lesson, track your progress, and access exclusive expert insights and tips!