Alert Rules API
Configure and manage alert rules for anomaly detection
Alert Rules API
Create alert rules to monitor metrics and trigger notifications.
Create Alert Rule
POST /api/v1/alerts
Request:
{
"site_id": "site_abc123",
"name": "High Bounce Rate",
"description": "Alert when bounce rate exceeds 50%",
"condition": {
"metric": "bounce_rate",
"operator": "greater_than",
"threshold": 50,
"window": "1h"
},
"notification_type": "webhook",
"notification_config": {
"url": "https://hooks.slack.com/...",
"channel": "#alerts"
}
}
List Alert Rules
GET /api/v1/alerts?site_id=site_abc123
Update Alert Rule
PUT /api/v1/alerts/{rule_id}
Delete Alert Rule
DELETE /api/v1/alerts/{rule_id}
Next Steps
- Webhooks — Webhook integration
Last updated: April 3, 2026