Key features
- Alert rules - Monitor metrics like turn latency, API errors, function errors, call crashes, and call volume
- Active alerts - Query which rules are currently in the
alertstate - Project scoping - Scope alerts to specific projects or monitor account-wide
Limits
Requests to create an alert rule beyond the limit return a
409 Conflict error.
Available metrics
All count-based metrics represent absolute counts in the evaluation window, not rates. For example, if you setwindow_duration: "5m" and threshold_value: 10 for api_errors, the alert triggers when there are 10 or more API errors in the 5-minute window.
When setting thresholds, consider the metric type and business impact:
- Error metrics (
api_errors,function_errors,call_crashes): Consider setting threshold to 0 for critical flows where any error requires attention - Latency metrics: Use longer windows (5-15 minutes) to smooth out transient spikes
- Volume metrics: Base thresholds on historical traffic patterns and expected business hours
Alert states
no_data vs unknown: Use no_data to detect when your agents aren’t receiving traffic (which may itself be a problem). unknown indicates that the state could not be determined — for example, the rule has not yet been evaluated. New alert rules default to the ok state until their first evaluation.
Quick start
1. Create an alert rule
api.us.poly.ai with the base URL for your deployment region. See Getting started for the full list of regional base URLs.
2. Check active alerts
Authentication
All Alerts API endpoints use API key authentication with thex-api-key header. Resources are automatically scoped to your account.
Create a key from the API Keys tab in Agent Studio — see API keys.
Error responses
Example error response
Pagination
List endpoints currently return all results without pagination. For accounts with many alert rules, consider filtering byproject_id, metric, or enabled status to reduce response size.
Update request format
PATCH requests use flat JSON, the same format as POST/create requests. Include only the fields you want to update:Window duration
Thewindow_duration field accepts the following values:
Recommended usage:
- Latency alerts:
5mor10mto smooth out transient spikes - Error count alerts:
5mfor faster detection - Volume alerts:
10mor60mdepending on traffic patterns

