What can you do with webhooks?
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.
- Automatically send content for translation
and receive notifications when the translation is done.
- Notify reviewers that the content is ready for review.
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.