Create an alert rule
Create a new alert rule. The account_id is derived from the X-API-KEY header.
Documentation Index
Fetch the complete documentation index at: https://docs.poly.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
An API key is a token that you provide when making API calls. Include the token in a header parameter called X-API-KEY.
Body
Fields for creating a new alert rule: which metric to watch, the threshold condition, and how long it must hold to fire.
Alert rule name
Metric to monitor
turn_latency_p50, turn_latency_p95, api_errors, function_errors, call_crashes, call_volume Comparison operator
>, <, >=, <= Threshold value
x >= 0Window duration (5m, 10m, or 60m)
5m, 10m, 60m Project ID (optional)
Whether the alert is enabled
Response
Alert rule created successfully.
An alert rule: its trigger condition, evaluation window, and current state.
Alert rule ID
^ar_[A-Za-z0-9]+$"ar_0Kx4mNpQ8rWvYb2dFgHjLs"
Alert rule name
Metric being monitored
turn_latency_p50, turn_latency_p95, api_errors, function_errors, call_crashes, call_volume Comparison operator
>, <, >=, <= Threshold value
x >= 0Window duration (5m, 10m, or 60m)
5m, 10m, 60m Whether the alert is enabled
Creation timestamp
Last update timestamp
Project ID
Current alert state
ok, alert, no_data, unknown When the current state started
Last evaluation timestamp
Current metric value

