Creating a Webhook Subscription

Create Webhook Subscription Dialog

  1. Open the Webhooks module in the Alerts section.

  2. Click Create Webhook Subscription in the top right corner.

  3. Fill in the required fields (marked with *) for each step in the dialogue.

  4. Click Create.

Types of Webhook Subscriptions

The VMS supports three types of webhook subscriptions: HTTP, Email, and Websocket.

  • HTTP and Email: These types send notifications as a HTTP request or as an email.

  • Websocket: This type pushes notifications directly to users via VMS.

Below are illustrations and detailed descriptions of the fields required to create a new Webhook Subscription for each type.

Receiver Step

Basic Authentication requires filling out a Username and Password for the endpoint. Request Token requires filling out an Access Token Request Url and an Access Token Request Body , with the other fields being optional.

Trigger Step

The Trigger specifies the condition that must be met to send a notification to the Receiver. Below are examples of various Webhook Subscription types, ranging from simple to more complex Trigger conditions.

Default example: will send notifications to the Receiver whenever a Cargo object your user has access to is updated.

Payload Step

Template Message and Fields are optional. Template Message allows for a custom message where field values from the object can be inserted in the sent notification.

Fields limit what fields should be returned in the notification and can look like this {"fieldName1":"*","fieldName2":"*"}. Read more about how to specify Fields here.

General

All options are optional except User, which must be selected. This should in most cases be set to the user intended to receive the notification. As the permissions of that User decides the access to objects when the notification is sent. Failing notifications could be due to the User not having the right access. The description icon (i) can be hovered over to reveal additional information about their function.

Last updated

Was this helpful?