Configuring Webhooks
Overview
A webhook sends an HTTP request to a URL you specify when a selected OL Hub event (trigger) occurs. You configure the HTTP method, the trigger event, the target URL, the request headers and the request body.
Creating and Configuring Webhooks
-
In the OL Hub, click on your user name in the upper right-hand corner of the screen. In the menu that opens, click on Webhooks:

-
The Webhooks page displays:

-
Click on Create a Webhook. The Create New Webhook window opens:

-
Type a Name for the Webhook (required).
-
Select a Method from the available list:

-
Enter the URL.
-
Select the Trigger from the available list (required):

-
Enter the Headers Key and Value pair. You may delete
the default (Content-Type and application/json) and replace them. You may also add pairs by clicking on Add Key-Value:

-
Enter the webhook JSON code between the brackets {} in the Body field.
Add query params, headers and even a Json object
You can fetch dynamically variables like:- "event_date": "${EVENT_DATE}"
- "user_name": "${USER_NAME}"
- "event_name": "${EVENT_NAME}"
- "resource_id": "${RESOURCE_ID}"
- "event_status": "${EVENT_STATUS}"
- "resource_data": "${RESOURCE_DATA}"
- "resource_name": "${RESOURCE_NAME}"
- "resource_type": "${RESOURCE_TYPE}"
- "resource_version": "${RESOURCE_VERSION}"
- "event_status_code": "${EVENT_STATUS_CODE}"
-
You may optionally protect the Webhook as follows:
- Click on the Security tab.

- Check the Secure Webhook box and click on Generate New Secret. The message Generated secret key successfully is displayed and the new secret appears in the Secret box.

- Click on Copy to clipboard and paste the new secret into a secure location.
- Click on the Security tab.
-
Click on Create Webhook. The message Webhook has been created is posted and the Webhook displays.

-
To modify the webhook, click the Edit button on the upper right-hand side of the page.
-
To delete the webhook, click Delete Webhook at the bottom of the page.
-
To add another webhook, click the Create a Webhook button on the upper right-hand side of the page. The names of the webhooks that were created appear on the upper left-hand side of the page.
