v1
latestOpenAPI 3.1.02026-07-2687120159.0 KBCreate an alert rule
Create a new alert rule. The account_id is derived from the X-API-KEY header.
post/v1/alert-rules
Request body
Example request
{
"name": "High turn latency (p95)",
"project_id": "proj_abc123",
"metric": "turn_latency_p95",
"operator": ">=",
"threshold_value": 1500,
"window_duration": "5m",
"enabled": true
}Response
Alert rule created successfully.
Example response
{
"id": "ar_0Kx4mNpQ8rWvYb2dFgHjLs"
}