Benchmarks Endpoint Reference
Reference for 3 Benchmarks endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Ground-truth datasets and benchmark runs measuring extraction accuracy.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
GET
/v1/quality/benchmarks/{id}Path parameters
id*string (uuid)Resource UUID.
curl
curl -X GET 'https://api.talonic.com/v1/quality/benchmarks/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/quality/benchmarks/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Benchmark run with per-document results.
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "string",
"dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"user_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"status": "completed",
"accuracy_overall": 1.5,
"accuracy_by_field": {},
"documents_processed": 1,
"documents_total": 1,
"duration_ms": 1,
"accuracy_delta": 1.5,
"compared_to_run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"created_at": "2026-04-25T14:30:00.000Z",
"completed_at": "2026-04-25T14:30:00.000Z"
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
DELETE
/v1/validation/ground-truth/{id}Path parameters
id*string (uuid)Resource UUID.
curl
curl -X DELETE 'https://api.talonic.com/v1/validation/ground-truth/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/validation/ground-truth/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Ground-truth dataset deleted.
{
"deleted": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.
DELETE
/v1/validation/runs/{id}Path parameters
id*string (uuid)Resource UUID.
curl
curl -X DELETE 'https://api.talonic.com/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/validation/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890", {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
},
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();Response 200 — Validation run deleted.
{
"deleted": true,
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}- 401 — Missing or invalid API key.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.