Webhooks
This article provides an overview of webhooks and how they can be configured to send event notifications to other applications.
Sections in this article:
Watch the video for a demonstration of webhooks:
What are Webhooks?
If you are familiar with coding, you can use webhooks to be notified automatically when a contract or vendor status changes in Gatekeeper.
A webhook allows one application to send event notifications to another application in real time.
For example, you might want to notify a third-party system, such as an ERP, when a new vendor is approved in Gatekeeper. The third-party system can then retrieve data about that vendor via the API.
Instead of making repeated calls to pull data frequently from the Gatekeeper API, Gatekeeper automatically sends a notification when a specified event occurs. This allows events to be synchronised to your other apps instantly while reducing unnecessary API traffic.
Note: This feature is only available on Enterprise Plans.
Supported Webhook Events
Gatekeeper can send notifications for the following events:
|
|
Configure Webhooks
To create a webhook in Gatekeeper:
-
From the navigation menu, expand Settings, then click Configuration.
-
Click Webhooks.
- Click Add Subscription.
-
Complete the following details:
-
Target URL - The URL where Gatekeeper will post event notifications.
-
Event Subscriptions - Select the checkboxes for the events you want to subscribe to. You can either create separate subscriptions for different events, or select multiple events into one subscription.
-
- Once finished, click Save.
Access the Secure Token
Gatekeeper secures webhooks using challenge-response authentication. This verifies that the recipient is authorised to receive the event notifications.
The Secure Token can be copied when configuring the subscription in Gatekeeper, and entered into the receiving system's webhook configuration. The third-party system can then validate that incoming event notifications were sent from Gatekeeper by checking that the secure token matches.
View Webhook Events
Once a webhook is configured, you can monitor the notifications sent from Gatekeeper to your target URL.
To do this, from the Webhooks Configuration page, click View in the Events column. This displays a log of events, which can be used to verify that events are sent as expected and to help diagnose any issues. Click the 3 dots to view further details.
For more information, see the Gatekeeper API article or contact your Customer Success Manager.