Skip to content

Webhook Format: PagerDuty

When format is set to pagerduty, incoming emails trigger PagerDuty incidents via the Events API v2. This format requires a routing_key option.

  1. In PagerDuty, go to Services and select the service you want to trigger.
  2. Open Integrations and add Events API v2.
  3. Copy the integration key.
Terminal window
curl 'https://api.echovalue.dev/webhook' \
-H 'x-token: mytoken' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://events.pagerduty.com/v2/enqueue",
"format": "pagerduty",
"options": {
"routing_key": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"
}
}'
PagerDuty fieldValue
summaryEmail subject
sourceSender email address
severityinfo
custom_details.textPlain text email body
custom_details.from_nameSender display name