PagerDuty webhook notifications from Data Infrastructure Insights fail with HTTP 400 Bad Request
Applies to
- Data Infrastructure Insights (DII)
Issue
- PagerDuty webhook notifications from Data Infrastructure Insights fail with
HTTP 400 Bad Request. - The DII webhook editor shows
Error calling Webhook (status: 400). - Alerts are not delivered to PagerDuty even though a custom routing key secret may be configured.
Cause
- PagerDuty Events API v2 requires a valid Integration Key in the
routing_keyJSON field. - The DII webhook message body sends an empty
routing_keyvalue (for example"routing_key": "") or does not reference the configured custom secret. - PagerDuty rejects the payload and returns
HTTP 400.
Solution
- In PagerDuty, open the target service and copy the Events API v2 Integration Key.
- In DII, go to Admin > Notifications > Webhooks and edit the PagerDuty webhook.
- Under Custom Parameters and Secrets, create or update a secret named
routingKeywith the Integration Key value. - In the message body JSON, reference the secret in the
routing_keyfield:"routing_key": "%%routingKey%%", - Save the webhook.
- Validate delivery by triggering a real monitor alert and reviewing the Status and Last Reported columns on the Webhooks list page.
Partner Notes
Additional Information
- See Webhook example for PagerDuty for field mapping and setup guidance.
- Note: The DII Test Webhook button does not substitute parameters. A
400response on test alone does not confirm production delivery is broken.
Internal Notes
- Originated from case 2010762847.
- Customer had a valid custom secret configured but the message body used an empty
routing_keyvalue instead of%%routingKey%%.
