List Test Runs
GEThttps://api.confident-ai.com/v1/test-runs
Retrieves a paginated list of test runs for the authorized project. Results can be filtered and sorted by status, dates, conversational (multi-turn) or metrics. Pagination is controlled with page and pageSize. Filtering and sorting options include status, multiTurn, sortField, and ascending.
curl -X GET "https://api.confident-ai.com/v1/test-runs" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"testRuns": [
{
"id": "342bd7a6",
"createdAt": "2024-06-01T12:34:56Z",
"identifier": "run042",
"status": "COMPLETED",
"multiTurn": false,
"testsPassed": 8,
"testsFailed": 2,
"totalTests": 10,
"metricsScores": [
{
"metric": "Answer Correctness",
"scores": [
0.9,
1
],
"passes": 8,
"fails": 2,
"errors": 0
}
],
"runDuration": 15.2,
"evaluationCost": 0.254,
"datasetAlias": "agent",
"testFile": "test-file-1.jsonl",
"summary": "8/10 passed"
}
],
"totalTestRuns": 113,
"page": 1,
"pageSize": 25
}
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
pageintegerdefault: 1Page number (must be a positive integer, default is 1).
pageSizeintegerdefault: 25Number of items per page (max 100, default is 25).
statusenumFilter test runs by status.
multiTurnenumFilter for conversational (multi-turn) test runs only ("true" or "false").
sortByenumdefault: createdAtField to sort results by ("createdAt" or "runDuration").
ascendingenumThis determines if the field specified in
sortByshould be in ascending order. Defaults tofalse.startstringISO 8601 start datetime filter (e.g. "2025-12-31T23:59:59Z").
endstringISO 8601 end datetime filter (e.g. "2025-12-31T23:59:59Z").
Response
A paginated list of test runs and total count.
successbooleandataobjectShow 4 propertiesHide 4 properties
testRunslist of objectsShow 14 propertiesHide 14 properties
idstringTest run unique identifier.
createdAtstringidentifierstringOptional test run identifier.
statusenumShow 4 enum valuesHide 4 enum values
COMPLETEDERROREDIN_PROGRESSCANCELLED
multiTurnbooleanWhether the test run is conversational.
testsPassedintegertestsFailedintegertotalTestsintegermetricsScoreslist of objectsShow 5 propertiesHide 5 properties
metricstringscoreslist of numberspassesintegerfailsintegererrorsinteger
runDurationnumberevaluationCostnumberdatasetAliasstringtestFilestringsummaryobjectShow 2 propertiesHide 2 properties
topicSummarieslist of objectsShow 3 propertiesHide 3 properties
topicstringtestCaseIdslist of integer | stringShow 2 variantsHide 2 variants
integer
- OR
string
summaryPointslist of objectsShow 3 propertiesHide 3 properties
gradenumbercontentstringtestCaseIdslist of integer | string
summaryOverviewobjectShow 2 propertiesHide 2 properties
summarylist of stringsactionItemslist of strings
totalTestRunsintegerTotal number of test runs matching filters.
pageintegerCurrent page number.
pageSizeintegerPage size.