API ReferenceBenchmarks
Metrics
Get aggregated accuracy metrics for a benchmark execution
GET
/api/v1/benchmarks/{executionId}/metricsReturns aggregated accuracy metrics for a benchmark execution, broken down by overall, column, and table levels.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
executionId | string | path | Yes | The benchmark execution ID |
Request
const res = await fetch(
"https://app.limai.io/api/v1/benchmarks/exec_abc123/metrics",
{
headers: {
Authorization: "Bearer YOUR_API_TOKEN",
},
}
);
const metrics = await res.json();Response
Response200
{
"executionId": "exec_abc123",
"status": "COMPLETED",
"aggregated": {
"overallSuccessRate": 0.94,
"totalFiles": 25,
"totalRows": 75
},
"byColumn": [
{
"columnId": "col_001",
"columnName": "Invoice Number",
"successRate": 0.98
},
{
"columnId": "col_002",
"columnName": "Date",
"successRate": 0.88
}
],
"byTable": [
{
"tableId": "tbl_001",
"tableName": "Invoices",
"successRate": 0.94
}
]
}