Book a demo

← Documentation

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

  1. 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:

    profile menu

  2. The Webhooks page displays:
    Creating and Configuring Webhooks screenshot

  3. Click on Create a Webhook. The Create New Webhook window opens:
    Creating and Configuring Webhooks screenshot

  4. Type a Name for the Webhook (required).

  5. Select a Method from the available list:
    Creating and Configuring Webhooks screenshot

  6. Enter the URL.

  7. Select the Trigger from the available list (required):
    Creating and Configuring Webhooks screenshot

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

  9. 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}"
  10. You may optionally protect the Webhook as follows:

    1. Click on the Security tab.
      Creating and Configuring Webhooks screenshot
    2. 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.
      Creating and Configuring Webhooks screenshot
    3. Click on Copy to clipboard and paste the new secret into a secure location.
  11. Click on Create Webhook. The message Webhook has been created is posted and the Webhook displays.
    Creating and Configuring Webhooks screenshot

  12. To modify the webhook, click the Edit button on the upper right-hand side of the page.

  13. To delete the webhook, click Delete Webhook at the bottom of the page.

  14. 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.
    Creating and Configuring Webhooks screenshot

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy