Settings
The following table describes each setting available when creating or editing a webhook.Trigger event types
When creating a webhook, you must select a trigger event type. The following trigger event type is available:Built-in variables
Each trigger event type includes a set of built-in variables available when creating or editing a webhook. These variables can be used to customize the webhook payload with dynamic, event-specific data.Rule Violation
The following table lists the built-in variables available for the Rule Violation trigger event type.Webhook payloads
Webhook payloads define the content sent to the destination URL when a webhook fires. Payloads are fully customizable and can be formatted as either plain text or JSON. Each payload can include built-in variables specific to the selected trigger event type, allowing dynamic insertion of relevant data such as Rule names, statuses, and timestamps. Sift provides predefined payload templates for services like Slack, OpsGenie, Jira, and PagerDuty. These can be selected from the Payload config template list during webhook creation or editing. The payload editor supports control flow, including if-else logic for dynamic formatting. For example:String literals in template actions: Sift parses the payload body as a Go template before it sends the webhook. Inside
{{ }}, write string literals with backticks, as in {{if eq .Status `resolved`}}. Escaped double quotes, such as \"resolved\", cause a parse error.Correlate violation and resolution events
Violating and resolving a Rule each fire a separate Rule Violation webhook event, with{{.Status}} set to violated or resolved. Both events are tied to the same underlying Annotation: the violation opens the Annotation, and the resolution closes it. Each event has its own {{.EventId}}, so the violation and resolution events for the same occurrence do not share an {{.EventId}} or a payload deduplication_key derived from it.
To correlate the violation and resolution events for the same occurrence, key off the associated Annotation together with {{.Status}} instead of {{.EventId}}.
Custom HTTP headers
When configuring a webhook, you can optionally define HTTP headers to customize how the receiving system handles the request. These headers are sent along with the webhook payload.Secure webhooks
Sift supports secure webhook delivery using HMAC-SHA256 signatures. These signatures ensure the webhook was sent by Sift and has not been tampered with in transit. Webhooks are only signed if your Sift environment has a webhook signing key configured. If no signing key exists, webhooks will not include anX-Sift-Signature header and should not be trusted for secure operations.
Once a signing key is configured, each outgoing webhook will include a signature header computed using the following formula:
sentAt value must be present in the payload to successfully validate the signature. This value is not included automatically. You must explicitly add it using {{.SentAt}} in your webhook payload template. Without it, signature verification will fail.