Skip to main content

Cases Endpoint Reference

Reference for 1 Cases endpoint of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

Groups of documents linked through shared identifiers. Cases are discovered automatically from the values documents share.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

GET/v1/cases/{key}/completeness

Required scope: read

Path parameters

key*string (uuid)Case UUID (the stable resource id).

curl

curl -X GET 'https://api.talonic.com/v1/cases/3fa85f64-5717-4562-b3fc-2c963f66afa6/completeness' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/cases/3fa85f64-5717-4562-b3fc-2c963f66afa6/completeness", {
  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 — Completeness assessment.

{
  "completeness_score": 1.5,
  "expected_document_types": [
    "string"
  ],
  "present_document_types": [
    "string"
  ],
  "missing_document_types": [
    "string"
  ]
}
  • 401 — Missing or invalid API key.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.