Webhook endpoint
All monitoring integrations use the same base URL pattern::tenantId with your tenant ID (found in Settings > General) and :provider with the provider name for your tool.
Authentication
Every webhook request must include two headers:| Header | Description |
|---|---|
X-API-Key | Your CauseFlow API key, created in Settings > API Keys |
X-Webhook-Signature | HMAC-SHA256 signature of the raw request body, signed with your webhook secret |
401 Unauthorized.
General setup steps
Create an API key
Go to Settings > API Keys and click Create key. Give it a descriptive name (for example, “Datadog webhook”). Copy the key — it will not be shown again.
Note your webhook secret
When you create the API key, CauseFlow also generates a webhook secret used for HMAC signature verification. Copy this too.
Configure the webhook in your monitoring tool
Use the webhook URL for your provider and add the required headers. See the provider-specific sections below for exact instructions.
Deduplication
If your monitoring tool sends duplicate alerts for the same firing condition, CauseFlow deduplicates them using thesourceAlertId field in the payload. Duplicate alerts return 409 Conflict — the original incident remains open and is not duplicated.
Provider setup
Datadog
Datadog
Webhook URL:
https://api.causeflow.ai/v1/webhooks/:tenantId/datadogSetup steps:- In Datadog, go to Integrations > Webhooks and click New.
- Set the URL to your CauseFlow Datadog webhook URL.
- Under Custom Headers, add:
X-API-Key: your CauseFlow API keyX-Webhook-Signature: leave this blank — see the note below on Datadog’s signature approach
- Under Payload, use the default JSON template (CauseFlow accepts the standard Datadog format).
- Save and test the webhook from any active monitor.
Datadog does not natively sign webhook payloads with HMAC-SHA256. For Datadog, include only the
X-API-Key header. Contact support@causeflow.ai if you need signature verification for Datadog.Grafana
Grafana
Webhook URL:
https://api.causeflow.ai/v1/webhooks/:tenantId/grafanaSetup steps:- In Grafana, go to Alerting > Contact points and click Add contact point.
- Select Webhook as the contact point type.
- Set the URL to your CauseFlow Grafana webhook URL.
- Under Optional Webhook settings, add the HTTP headers:
X-API-Key: your CauseFlow API keyX-Webhook-Signature: your HMAC-SHA256 signature (compute from the payload)
- Click Test to send a test notification.
- Add the contact point to an alert rule via a notification policy.
CloudWatch
CloudWatch
Webhook URL:
https://api.causeflow.ai/v1/webhooks/:tenantId/cloudwatchCauseFlow receives CloudWatch alarms via Amazon SNS HTTP subscriptions.Setup steps:- In AWS, create an SNS topic (or use an existing one connected to your CloudWatch alarms).
- Create an HTTPS subscription on the topic with the endpoint set to your CauseFlow CloudWatch webhook URL.
- CauseFlow automatically confirms the SNS subscription when the confirmation request arrives.
- Add your
X-API-Keyheader by using an SNS delivery policy or an API Gateway proxy in front of the SNS subscription if direct header injection is needed.
SNS HTTPS subscriptions do not support custom headers natively. For production use, deploy a lightweight AWS Lambda function or API Gateway as a proxy that adds the
X-API-Key header before forwarding to CauseFlow. See our sample Lambda template for a ready-to-deploy option.Sentry
Sentry
Webhook URL:
https://api.causeflow.ai/v1/webhooks/:tenantId/sentrySetup steps:- In Sentry, go to Settings > Integrations > WebHooks for your organization.
- Click Add to Project and select the project you want to monitor.
- Set the Callback URL to your CauseFlow Sentry webhook URL.
- Under Request Headers, add:
X-API-Key: your CauseFlow API keyX-Webhook-Signature: your HMAC-SHA256 signature
- Select which events to send: at minimum enable Issue events.
- Click Save Changes and then Test Plugin to verify.