Alerts and automated response

Create rules for an app or agent, choose a threshold, and set a cooldown. Available rule types are daily spend cap, error rate, spend anomaly, and heartbeat lost. Error-rate evaluation needs at least five runs; anomaly evaluation needs at least twenty baseline runs.

A rule can notify or attempt an automatic pause. Automatic pause respects the app’s control scope and control-disable settings. Review alert events to distinguish a notification, a successful pause, and an action blocked by policy. Discord delivery can be configured for the organization.

Alert rules API

Method and route Purpose
GET /api/alert-rules List alert rules.
POST /api/alert-rules Create a rule.
PATCH /api/alert-rules/:id Update threshold, scope, action, or cooldown.
GET /api/alert-events Inspect alert history.
GET /api/org/control Read organization control state.
PATCH /api/org/control Owner/admin control settings and notification configuration.