List Rules
GEThttps://api.confident-ai.com/v2/evaluation-rules
Lists the evaluation rules in your Confident AI project one page at a time, newest first, as summary rows. Retrieve a rule by id for its full configuration and the metric collection it runs. Requires the Starter plan or above.
curl -X GET "https://api.confident-ai.com/v2/evaluation-rules" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"evaluationRules": [
{
"id": "<EVALUATION-RULE-ID>",
"name": "Score production answers",
"enabled": true,
"dataModel": "TRACE"
}
],
"totalEvaluationRules": 4,
"page": 1,
"pageSize": 25
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/workflows",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
dataModelenumpageintegerdefault: 1The page to return. Defaults to 1.
pageSizeintegerdefault: 25The number of results per page, at most 100. Defaults to 25.
Response
List Rules succeeded.
successbooleanIndicates if the request was successful.
dataobjectOne page of evaluation rules, with the total across all pages.
Show 4 propertiesHide 4 properties
evaluationRuleslist of objectsThe rules for the current page, newest first.
Show 4 propertiesHide 4 properties
idstringThe id of the rule, generated by Confident AI.
namestringThe name of the rule.
enabledbooleanWhether the rule is currently evaluating.
dataModelenumWhat kind of production item a rule evaluates: TRACE for a whole trace, SPAN for a single step within one, THREAD for a finished conversation.
Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
totalEvaluationRulesintegerThe total number of rules matching the query, across all pages.
pageintegerThe page this response covers.
pageSizeintegerThe number of rules per page.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.