List Evaluation Rules
GEThttps://api.confident-ai.com/v1/evaluation-rules
Lists the evaluation rules in your project, 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/v1/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"
}
]
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/workflows"
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
dataModelenumOnly return rules for this kind of item. Omit to return all of them.
Response
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
evaluationRuleslist of objectsThe project's evaluation rules, newest first, as summary rows.
Show 4 propertiesHide 4 properties
idstringThe unique identifier of the evaluation rule.
namestringThe name of the evaluation rule.
enabledbooleanWhether the rule is currently evaluating.
dataModelenumWhat kind of item the rule evaluates.
Show 3 enum valuesHide 3 enum values
TRACESPANTHREAD
linkstringA link to the workflows page.