Webhooks is a brilliant way to stay updated on things happen around a service. Many services and products running on cloud allow developers and other interested parties to listen to the responses sent via HTTP Post. Its like a subscription for a newsletter and they sends whenever there is a new edition.
We need four sources of information in order to create a webhook.
- Resource url - The list or site url that you will be subscribed to.
- Subscriber url - The url where the HTTP Post request will be received by.
- Expiration date - By default, a webhook expires in 6 months after it is created and that is the maximum, you can make lower if needed.
- Client state - This is a non mandatory text you can include if necessary for the validation processes and any other at the receiver end.