Documentation
Complete guides and references for MetricPoints
Webhooks
Webhook Events
Webhooks allow you to receive real-time notifications about events in your MetricPoints account.
Available Events
error.new
- New error occurrederror.threshold_exceeded
- Error rate threshold exceededperformance.degraded
- Performance degradation detectedcsp.violation
- New CSP violation reported
Webhook Payload
{
"event": "error.new",
"timestamp": "2024-01-01T12:00:00Z",
"data": {
"error_id": "12345",
"error_type": "JavaScript",
"error_message": "Cannot read property 'x' of undefined",
"url": "https://example.com/page",
"user_agent": "Mozilla/5.0...",
"stack_trace": "..."
}
}