Overview
Webhooks let you receive CostHawk alerts in your preferred communication channels - Slack, Discord, Microsoft Teams, PagerDuty, or any custom endpoint.Supported Platforms
| Platform | Payload Format |
|---|---|
| Slack | Slack Block Kit |
| Discord | Discord Embed |
| Microsoft Teams | Adaptive Card |
| PagerDuty | Events API v2 |
| Custom | JSON payload |
Creating a Webhook
Via Dashboard
- Go to Settings → Webhooks
- Click Add Webhook
- Enter a name and URL
- Select the platform type
- Choose which events to subscribe to
- Save
Via MCP Server
“Create a Slack webhook for budget alerts at https://hooks.slack.com/services/T00/B00/xxx”
Event Types
Subscribe to the events you care about:| Event | Description |
|---|---|
cost_spike | Unusual increase in spending |
budget_warning | Approaching budget threshold |
budget_exceeded | Budget limit exceeded |
anomaly | Unusual activity detected |
error_spike | Increase in API errors |
rate_limit | Rate limit warnings |
Slack Setup
- Go to your Slack workspace settings
- Create a new Incoming Webhook
- Select a channel
- Copy the webhook URL
- Add to CostHawk with type
slack
Discord Setup
- Go to your Discord server settings
- Navigate to Integrations → Webhooks
- Create a new webhook
- Copy the webhook URL
- Add to CostHawk with type
discord
Testing Webhooks
After creating a webhook, use the Test button in the dashboard to send a sample notification and verify your setup.Managing Webhooks
List webhooks
“What webhooks do I have configured?”
