webhooks.pagerduty() verifies the HMAC-SHA256 signature PagerDuty sends in x-pagerduty-signature on every request.
/trigger/pagerduty.ts
Set up PagerDuty
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - In PagerDuty, open Integrations > Generic Webhooks (v3) and choose New Webhook. Enter the webhook URL and select the event types your subscribers need.
- PagerDuty shows the webhook’s signing secret once, when the webhook is created. Copy it then, and choose Set signing secret on the Trigger.dev endpoint.
- Send a test event from PagerDuty, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

