Provenance Endpoint Reference
Reference for 1 Provenance endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.
Document-level provenance — deterministic (subject, predicate, object) claims synthesized from captured fields and spans, each carrying its evidence quote and grounded flag.
Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.
POST
/v1/documents/{id}/claims/recomputeRequired scope: documents:write
Path parameters
id*string (uuid)
curl
curl -X POST 'https://api.talonic.com/v1/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6/claims/recompute' \
-H "Authorization: Bearer $TALONIC_API_KEY"Node.js (18+)
const res = await fetch("https://api.talonic.com/v1/documents/3fa85f64-5717-4562-b3fc-2c963f66afa6/claims/recompute", {
method: 'POST',
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 — Rebuilt
{}- 400 — The request is invalid.
- 401 — Missing or invalid API key.
- 403 — The API key does not have the required scope.
- 404 — The requested resource was not found.
- 429 — Daily rate limit exceeded.