Create Validation Run
Start a validation run with POST /v1/validation/runs, comparing a job run against a Ground Truth dataset for per-field extraction accuracy scores.
POST /v1/validation/runs starts a validation run: a benchmark that compares the output of one job run against a Ground Truth dataset of verified expected values. The benchmark engine compares each extracted value to the expected value, computing exact match, fuzzy match, and similarity scores; an LLM judge provides a semantic verdict for ambiguous cases. This measures accuracy after extraction, unlike the in-pipeline checks that gate results before delivery.
Validation runs start in pending status and move to running as comparisons are performed. Once complete, the accuracy field contains the overall score and per-field results are available via the Results endpoint.
golden_sample_id and dataspace_run_id must belong to your organization. The API returns 404 if either resource is not found./v1/validation/runsBody parameters
Request body
{
"dataspace_run_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"golden_sample_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"name": "Q1 Invoice accuracy check"
}Response
Response fields (201 Created)
Response (201 Created)
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Q1 Invoice accuracy check",
"status": "pending",
"dataspace_run_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"golden_sample_id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"accuracy": null,
"total_comparisons": null,
"created_at": "2024-09-14T10:32:00.000Z",
"completed_at": null,
"links": {
"self": "/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"results": "/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/results"
}
}Errors
Error responses