List Runs
GEThttps://api.confident-ai.com/v2/test-runs
Lists the test runs in your Confident AI project, newest first by default. Filter by status, multiTurn and the start/end window, sort with sortBy and ascending, and page with page and pageSize. Requires an active trial or paid plan.
curl -X GET "https://api.confident-ai.com/v2/test-runs" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"testRuns": [
{
"id": "<TEST-RUN-ID>",
"createdAt": "2025-01-01T12:00:00.000Z",
"identifier": "run-399-102",
"status": "IN_PROGRESS",
"multiTurn": false,
"testsPassed": 8,
"testsFailed": 2,
"totalTests": 10,
"metricsScores": [
{
"metric": "Answer Correctness",
"scores": [
0.9,
1
],
"passes": 8,
"fails": 2,
"errors": 0,
"errorType": "AI_CONNECTION_ERROR"
}
],
"runDuration": 15.2,
"evaluationCost": 0.254,
"datasetAlias": "geography-goldens",
"testFile": "test_geography.py",
"summary": {
"summaryOverview": {
"summary": [
"8 of 10 test cases passed."
],
"actionItems": [
"Add goldens for lesser-known peaks."
]
},
"topicSummaries": [
{
"topic": "Mountain heights",
"summaryPoints": [
{
"content": "Answers about mountain heights were correct and cited the retrieved context.",
"testCaseIds": [
"<TEST-CASE-ID>"
],
"grade": 0.9
}
],
"testCaseIds": [
"<TEST-CASE-ID>"
]
}
]
}
}
],
"totalTestRuns": 113,
"page": 1,
"pageSize": 25
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
pageintegerdefault: 1The page of test runs to return. Defaults to 1.
pageSizeintegerdefault: 25The number of test runs per page, at most 100. Defaults to 25.
startstringReturns only test runs created at or after this ISO 8601 datetime. Defaults to 60 days ago.
endstringReturns only test runs created at or before this ISO 8601 datetime. Defaults to now.
sortByenumdefault: createdAtThe field to sort by. Defaults to
createdAt.ascendingbooleandefault: falseThis determines if the field specified in
sortByshould be in ascending order. Defaults tofalse.statusenumReturns only test runs with this status.
multiTurnbooleanWhen true, returns only multi-turn test runs; when false, only single-turn test runs. Omit to return both.
Response
List Runs succeeded.
successbooleanIndicates if the request was successful.
dataobjectShow 4 propertiesHide 4 properties
testRunslist of objectsThis is the page of test runs.
Show 14 propertiesHide 14 properties
idstringThis is the unique ID for the test run, generated by Confident AI and not to be confused with the identifier provided by the user.
createdAtstringThe time the test run was created.
identifierstring | nullThe human-readable identifier you gave the test run, if any.
statusenumThe status of the test run: IN_PROGRESS while test cases are still being evaluated, then COMPLETED, ERRORED or CANCELLED.
Show 4 enum valuesHide 4 enum values
IN_PROGRESSCOMPLETEDERROREDCANCELLED
multiTurnbooleanWhether this test run contains multi-turn test cases.
testsPassedintegerThe number of test cases that passed.
testsFailedintegerThe number of test cases that failed.
totalTestsintegerThe total number of test cases in this test run.
metricsScoreslist of objectsThe aggregated metric scores across all test cases.
Show 6 propertiesHide 6 properties
metricstringThis is the name of the metric.
scoreslist of numbersThis is an array of scores for the metric across test cases, one per test case that produced a score.
passesintegerThis is the number of times this metric passed the threshold.
failsintegerThis is the number of times this metric failed to pass the threshold.
errorsintegerThis is the number of times this metric errored during evaluation.
errorTypeenum | nullWhy an evaluation errored: the AI connection or a transformer failed, the evaluation model failed, the test case lacked the parameters the metric needs, or an internal error occurred.
Show 5 enum valuesHide 5 enum values
AI_CONNECTION_ERRORTRANSFORMER_ERROREVALUATION_MODEL_ERRORINVALID_TEST_CASE_PARAMETERSINTERNAL_ERROR
runDurationnumberThe total duration of the test run in seconds.
evaluationCostnumber | nullThe cost of evaluating every test case in the test run.
datasetAliasstring | nullThe alias of the dataset the test run was evaluated on, if any.
testFilestring | nullThe test file the test run was started from, if any.
summaryobject | nullThe AI-generated summary of a test run, produced on the Confident AI platform. Null until it has been generated.
Show 2 propertiesHide 2 properties
summaryOverviewobjectThe headline findings and action items of a test run.
Show 2 propertiesHide 2 properties
summarylist of stringsThe headline findings across every topic.
actionItemslist of stringsWhat to change to improve the next test run.
topicSummarieslist of objectsThe findings for each topic the test cases were grouped into.
Show 3 propertiesHide 3 properties
topicstringThe topic the test cases were grouped under.
summaryPointslist of objectsThe findings for this topic.
Show 3 propertiesHide 3 properties
contentstringOne finding about the test cases in this topic.
testCaseIdslist of stringsThe ids of the test cases this finding is drawn from.
gradenumberHow well the test cases behind this finding performed, from 0 to 1.
testCaseIdslist of stringsThe ids of the test cases grouped under this topic.
totalTestRunsintegerTotal number of test runs matching the filters.
pageintegerThe page this response covers.
pageSizeintegerThe number of test runs per page.
deprecatedbooleanIndicates if this endpoint is deprecated.