Verify Archived Evidence Report Hash
verify_evidenceVerify an archived Montgomery evidence report by its audit entry id: CarrierScore re-reads the immutable stored copy, recomputes its SHA-256 and reports whether it matches the hash recorded at generation time (and, optionally, a hash the caller supplies — e.g. the sha256 printed on a broker's filed copy). Requires the same paid API key that generated the report.
Use it when a broker or auditor needs to prove that a filed evidence report is exactly what CarrierScore produced on the stated date. match=true means the archived report is byte-identical to what was served; match_supplied compares against the caller's own hash. Follow up with the audit_entries list to find ids, or with montgomery_file to generate a fresh report.
Args:
entry_id: the audit_entry_id returned by montgomery_file (also listed by audit_entries)
sha256 (optional): a 64-hex SHA-256 to compare against the archived report (text or canonical json)
Returns JSON: { entry_id, dot_number, generated_at, scored_as_of, score_version, format_requested, sha256_stored, sha256_computed, match, sha256_json_stored, sha256_json_computed, match_json, sha256_supplied?, match_supplied? }.
Errors: 403 without a paid key, or (Monitor tier) if the entry is older than the 90-day retrieval window; 404 if the entry id is unknown for this key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Optional SHA-256 to compare against the archived report | |
| entry_id | Yes | Audit entry id from montgomery_file / audit_entries |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | true = the archived report is byte-identical to what was served | |
| entry_id | Yes | ||
| dot_number | No | ||
| match_json | No | ||
| generated_at | No | ||
| scored_as_of | No | ||
| score_version | No | ||
| sha256_stored | No | Hash recorded when the report was archived | |
| match_supplied | No | Whether the supplied hash matches the archived report | |
| sha256_computed | Yes | Hash recomputed now from the stored report text | |
| sha256_supplied | No | Echo of the hash the caller supplied, if any | |
| format_requested | No | ||
| sha256_json_stored | No | ||
| sha256_json_computed | No |