curl -X POST "https://kodostatus.com/api/v1/webhooks" \ -H "X-API-Key: your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Incident Alerts", "url": "https://example.com/webhook", "events": ["incident.created", "incident.updated", "incident.resolved"], "secret": "whsec_..." }'
{ "id": "uuid", "name": "Incident Alerts", "url": "https://example.com/webhook", "events": ["incident.created", "incident.updated", "incident.resolved"], "enabled": true, "secret": "whsec_..." }
Create a new webhook endpoint
incident.created
incident.updated
incident.resolved
service.status_changed
monitor.down
monitor.recovered