Authentication
Requires a valid session token in theAuthorization header:
GET /api/alerts/config
Retrieve current alert configuration including toggles for each alert type and retention settings.Response
Boolean flags for each alert type
Number of days to retain alert history before automatic cleanup
PUT /api/alerts/config
Update alert configuration. All fields are optional; only provided fields will be updated.Request Body
Enable/disable prompt drift alerts
Enable/disable prompt size alerts
Enable/disable budget warning alerts
Enable/disable budget exceeded alerts
Enable/disable on-chain denial alerts
Enable/disable rate limit alerts
Enable/disable anomalous volume alerts
Enable/disable new endpoint alerts
Enable/disable time anomaly alerts
Enable/disable high-severity denial alerts
Number of days to retain alerts (must be positive)
Response
Returns
true if configuration was saved successfullyUpdated alert toggle settings (same structure as GET response)
Updated retention period in days
Error Responses
- 401 Unauthorized: Missing or invalid session token
- 500 Internal Server Error: Failed to save configuration file