List Alerts
GEThttps://api.confident-ai.com/v2/scheduled-alerts
Lists the scheduled alerts in your Confident AI project one page at a time, ordered by name. Each alert is returned as a summary row; retrieve one by id for its aggregation, filters, threshold, severity and run history.
curl -X GET "https://api.confident-ai.com/v2/scheduled-alerts" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"scheduledAlerts": [
{
"id": "<SCHEDULED-ALERT-ID>",
"name": "Trace error rate spike",
"dataModel": "TRACE",
"enabled": true
}
],
"totalScheduledAlerts": 7,
"page": 1,
"pageSize": 25
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/monitors",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
pageintegerdefault: 1The page of scheduled alerts to return. Defaults to 1.
pageSizeintegerdefault: 25The number of scheduled alerts per page, at most 100. Defaults to 25.
dataModelenumReturns only alerts measuring this kind of item. Omit to return all of them.
enabledenumReturns only alerts whose schedule is running when
true, or only the paused ones whenfalse. Omit to return both.
Response
List Alerts succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of scheduled alerts, with the total across all pages.
Show 4 propertiesHide 4 properties
scheduledAlertslist of objectsThe scheduled alerts for the current page, ordered by name.
Show 4 propertiesHide 4 properties
idstringThe id of the scheduled alert, generated by Confident AI.
namestringThe name of the alert.
dataModelenumWhat kind of production item an alert measures over. TRACE and SPAN alerts aggregate single requests; THREAD alerts aggregate conversations.
Show 8 enum valuesHide 8 enum values
TRACESPANLLM_SPANAGENT_SPANRETRIEVER_SPANTOOL_SPANCUSTOM_SPANTHREAD
enabledbooleanWhether the alert's schedule is running. False when the alert has no schedule.
totalScheduledAlertsintegerThe total number of scheduled alerts matching the filters.
pageintegerThe page this response covers.
pageSizeintegerThe number of scheduled alerts per page.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.