Skip to main content
records

Assess template heatmap quality

Return structured quality findings and deterministic scoring policy v1.

GET
/api/records/{company_name}/templates/{template_id}/diagnostics/quality-check

Score = 2/3 item score + 1/3 global score. Item penalties use high=1, medium=.75, low=.5; each item/rule counts once. Global rules count equally. See docs/heatmap-quality-check.md for thresholds, missing-data semantics, score denominators and action targets. No mutation or translation occurs.

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

template_idstringrequired
Required string length: 24 - 24
Pattern: ^[0-9a-f]{24}$
Example: 5eb7cf5a86d9755df3a6c593
company_namestringrequired
langenum<string>querydefault:en

Name comparison locale. Negative wording always checks available English translations, independent of this locale, without fallback.

Available options: en, de, fr, es, it, pt, nl, pl, cs, da, sv, fi, nb, et, lt, lv, sk, sl, bg, ru, uk, el, tr, hu, ja, ko, zh, id
include_review_snapshotbooleanquerydefault:false

Include the raw heatmap assessed by this request for a subsequent holistic review.

Response

application/json

Successful Response

componentsobjectrequired
coverageobjectrequired
findingsobject[]required
localestringrequired
percentagenumberrequired

Unrounded score multiplied by 100.

Required range: 0 <= x <= 100
review_snapshotobject | null

Present only when include_review_snapshot=true. Raw inputs from the exact snapshot assessed by policy v1; non-finite numbers are represented as NaN/Infinity/-Infinity strings.

schema_versionintegerdefault:1required
scorenumberrequired

Policy v1: 2/3 item_score + 1/3 global_score, bounded to [0,1]. Read coverage alongside this score.

Required range: 0 <= x <= 1
scoring_versionintegerdefault:1required
verdictenum<string>required
Available options: good, warning, poor, insufficient_data