Webhook Support for Sensor Notifications

Prev Next

Use a webhook to send sensor notifications to another application, such as Microsoft Teams, Slack, ServiceNow, or PagerDuty. When a sensor notification activates, SysTrack sends an HTTP request with information about the notification to the URL of the webhook.

A webhook is a sensor notification recipient with the System recipient type and the Webhook connection. A notification can have both webhook and email recipients. Several notifications can use the same webhook, and you can reuse a webhook after you create it. Each webhook needs a unique name.

For information about integrating with Qualtrics, see Operational Pulse Integration with Qualtrics.

Set Up Webhooks in SysTrack

NOTE: In SysTrack On-Premises, webhook setup has no Notification Type row, and the master server must be connected to the internet. See Webhooks for Sensor Notifications in Differences in Configure for On-Premises.

To add a webhook, Configure must be unlocked for editing. See Unlock for Editing.

  1. Go to Configure > Sensor Configuration > Notifications, and select the Recipients tab.

  2. Add a recipient. The Add New Recipient dialog box opens. See Manage Sensor Notification Recipients.

  3. In Recipient Type, select System. Recipient Type is User by default.

  4. In Name, enter a name for the webhook. The name is required, can have up to 256 characters, and must be different from the name of every other webhook, including Data Egress webhooks.

  5. In Connection, select Webhook. Connection is Email by default.

  6. In Notification Type, select Sensor Notification (default). The Notification Type row shows only when anomaly notifications are available. For anomaly notifications, see Anomalies.

  7. In URL, enter the URL that the third-party system gives you for the webhook. The URL must start with http:// or https://.

  8. In Request Method, select one of the following:

    • POST (default): creates a new resource in the third-party application.

    • PUT: updates a resource in the third-party application.

NOTE: The method to use depends on the third-party application.

  1. In Authentication, select one of the following options:

    • Basic Auth: Enter the username and password for the third-party system. Both are required.

    • Signed Secret: Enter your own secret in Secret, or click Generate New to create one. The secret is required. SysTrack uses the secret to sign each webhook request and sends the signature in the x-lakeside-hmac-sha256 header. The secret itself is not sent. For details, see Signed Secret Authentication for Webhooks.

    • Specify Authentication via a Header (default): Authenticate with a custom header, such as an API key or a bearer token, that you add in Headers (Optional).

IMPORTANT: The secret is shown only while you set up the webhook. It is not displayed again after you save. Store it in a safe place.

NOTE: Specify Authentication via a Header does not require a header, but a header is recommended for production environments. Webhooks created with the earlier Off option continue to work. When you edit one of them, Specify Authentication via a Header is selected.

  1. (Optional) In Headers (Optional), click the plus sign to add a header. Header names must be unique. For each header:

    • In Name, enter the name of the header. Use letters, numbers, underscores, and hyphens, up to 50 characters.

    • In Value, enter the value of the header. The value is required.

    • (Optional) Select Sensitive to hide the value. After you save, the value is not shown in the interface again. Sensitive is cleared by default.

    • To remove a header, click the delete icon in its row.

  2. In Body, enter the template for the content of the webhook request. Body starts with a default JSON template that you can use as a starting point.

    • To add a variable, select it in Select variable and click Insert. The variable is added at the cursor. Insert is available after you select a variable.

    • To see the list of variables, click View documentation. It opens Sensor Notification Webhook Body Templates.

  3. Click Add Recipient. When you edit a webhook, the button is Update Recipient.

Troubleshooting Webhooks

  • "Please provide a unique name for the system": Another webhook already uses this name. Webhook names must be unique across sensor notification, anomaly, and Data Egress webhooks. Enter another name.

  • The webhook does not reach the third-party system (On-Premises): Check that the master server is connected to the internet.

Configure Third-Party Applications

For more information about using third-party applications and webhooks, see the following: