API Reference: Alerts
Endpoints for listing and resolving alerts.
List Alerts — GET /alerts
curl -G https://api.xase.ai/v1/alerts -H "Authorization: Bearer xase_pk_..." --data-urlencode "status=active" --data-urlencode "severity=critical"Response
[{
"id": "alert_xyz",
"type": "override.rate.high",
"severity": "critical",
"message": "Override rate exceeded threshold",
"status": "active"
}]Resolve Alert — POST /alerts/{id}/resolve
curl -X POST https://api.xase.ai/v1/alerts/alert_xyz/resolve -H "Authorization: Bearer xase_pk_..." -H "Content-Type: application/json" -d '{
"resolution_note": "Investigated and resolved"
}'Response
{
"id": "alert_xyz",
"type": "override.rate.high",
"severity": "critical",
"message": "Override rate exceeded threshold",
"status": "active",
"created_at": "2025-01-15T14:00:00Z"
}Alerts help detect anomalies (e.g., high override rates). Use webhooks for real-time notifications.