List Metrics Data
GEThttps://api.confident-ai.com/v1/metrics-data
Retrieves a paginated list of metric data (evaluation results) from your Confident AI project.
curl -X GET "https://api.confident-ai.com/v1/metrics-data" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"metricsData": [
{
"id": "metric-data-uuid-1",
"projectId": "PROJECT-ID",
"traceUuid": null,
"spanUuid": null,
"testCaseId": "test-case-uuid-1",
"testRunId": null,
"threadId": null,
"name": "answer_relevancy",
"multiTurn": false,
"score": 0.85,
"reason": "The answer is relevant to the question",
"success": true,
"createdAt": "2025-11-12T10:30:00.000Z",
"evaluatedAt": "2025-11-12T10:30:02.000Z",
"threshold": 0.7,
"strictMode": false,
"skipped": false,
"evaluationModel": "gpt-4o",
"error": null,
"evaluationCost": 0.002,
"verboseLogs": null,
"updatedAt": "2025-11-12T10:30:02.000Z"
},
{
"id": "metric-data-uuid-2",
"projectId": "PROJECT-ID",
"traceUuid": null,
"spanUuid": null,
"testCaseId": "test-case-uuid-2",
"testRunId": null,
"threadId": null,
"name": "faithfulness",
"multiTurn": false,
"score": 0.92,
"reason": "The output is faithful to the context",
"success": true,
"createdAt": "2025-11-12T09:15:00.000Z",
"evaluatedAt": "2025-11-12T09:15:03.000Z",
"threshold": 0.8,
"strictMode": false,
"skipped": false,
"evaluationModel": "gpt-4o",
"error": null,
"evaluationCost": 0.003,
"verboseLogs": null,
"updatedAt": "2025-11-12T09:15:03.000Z"
}
],
"totalMetricsData": 150,
"page": 1,
"pageSize": 25
}
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Query parameters
pageintegerThis specifies the page number of the metrics data to return. Defaulted to 1.
pageSizeintegerThis specifies the maximum number of metrics data per page. Defaulted to 25, capped at 100.
startstringThis filters for metrics data created after the specified start datetime. Defaulted to 60 days ago.
endstringThis filters for metrics data created before the specified end datetime. Defaulted to the current time.
sortByenumThis determines the field to sort by. Defaulted to
createdAt.ascendingenumThis determines if the field specified in
sortByshould be in ascending order. Defaults tofalse.
Response
Successfully retrieved list of metrics data
successbooleanIndicates if the request was successful
dataobjectShow 4 propertiesHide 4 properties
metricsDatalist of objectsList of metric data entries
Show 21 propertiesHide 21 properties
idstringThe unique identifier of the metrics data entry.
projectIdstringThe project this metric data belongs to.
traceUuidstringThe UUID of the trace this metric data is associated with, if any.
spanUuidstringThe UUID of the span this metric data is associated with, if any.
testCaseIdstringThe ID of the test case this metric data is associated with, if any.
testRunIdstringThe ID of the test run this metric data is associated with, if any.
threadIdstringThe ID of the thread this metric data is associated with, if any.
namestringThe name of the metric.
multiTurnbooleanWhether this metric was evaluated on a multi-turn conversation.
scorenumberThe final metric score.
reasonstringThe reason for the metric score, generated by the evaluation model at evaluation time.
successbooleanWhether the metric score is above the threshold.
createdAtstringThe time the metric data was created.
evaluatedAtstringThe time the metric was evaluated.
thresholdnumberThe threshold for the metric, which determines if the metric is passing or failing.
strictModebooleanWhether the metric was run in strict mode, which outputs a binary score of 0 or 1.
skippedbooleanWhether the metric evaluation was skipped.
evaluationModelstringThe evaluation model used to run the evaluation.
errorstringThe error message if the evaluation failed.
evaluationCostnumberThe cost of running the evaluation.
verboseLogsstringThe verbose logs of the evaluation, which breaks down the metric score calculation into individual steps.
totalMetricsDataintegerTotal number of metric data entries matching the query
pageintegerCurrent page number
pageSizeintegerNumber of items per page