Alerts API
Delete an alert rule
Pause one of your alert rules and keep it, or remove it with its history and events.
POST https://data.vike.io/v1/alerts/rules/{alert_id}/deleteDeletes one of your rules: by default it is paused and kept (as is_active: false on an edit), with hard=true it
is removed for good, with its history, its events in the feed and its queued
deliveries. The answer is {"ok": true, "alert_id": 77, "hard": false}; 404 for a rule that is not yours or does
not exist. The same as the MCP tool alerts_delete.
alert_idpathrequiredThe alert rule's
id (from GET /v1/alerts/rules).hardqueryoptionalRemove the rule with its history, events and queued deliveries. Default false: the rule is paused and kept.
# remove rule 77 for good
curl -X POST -H "X-API-Key: $VIKE_API_KEY" \
"https://data.vike.io/v1/alerts/rules/77/delete?hard=true"