API ReferenceAlerts
Authorization
bearerAuth AuthorizationBearer <token>
appSecret or sessionToken
In: header
Request Body
application/json
metric*string
handoff_rate | csat_avg | tool_failure_rate | resolution_rate
operator*string
gt | lt | gte | lte
threshold*number
Comparison threshold value
windowMs?number
Evaluation window in ms (default 24h)
isActive?boolean
Enable/disable the rule
Response Body
application/json
curl -X POST "https://your-convex-deployment.convex.site/api/alerts/rules" \ -H "Content-Type: application/json" \ -d '{ "metric": "string", "operator": "string", "threshold": 0 }'{}Edit on GitHub
Last updated on