Alerts API
Change an alert rule
Change only the fields you send of one of your alert rules: pause it, move its threshold, replace its wallet or its channels.
POST https://data.vike.io/v1/alerts/rules/{alert_id}/editChanges one of your rules: only the fields in the JSON body change. The body is the input of the MCP tool
alerts_edit less alert_id, which is the path. is_active: false pauses the
rule, address: "" removes its wallet condition, and a Hyperliquid rule is checked again whole; its type never
changes. A new token or chain is checked like a new rule's (Create an alert rule).
The answer is {"alert": {...}}, the rule after the change; 404 for a rule that is not yours or does not exist.
alert_idpathrequiredThe alert rule's
id (from GET /v1/alerts/rules).# pause rule 77
curl -X POST -H "X-API-Key: $VIKE_API_KEY" -H "Content-Type: application/json" \
"https://data.vike.io/v1/alerts/rules/77/edit" \
-d '{"is_active": false}'
# raise its floor to $5M and send it to your webhooks
curl -X POST -H "X-API-Key: $VIKE_API_KEY" -H "Content-Type: application/json" \
"https://data.vike.io/v1/alerts/rules/77/edit" \
-d '{"min_value_usd": 5000000, "channels": ["webhook"]}'