Verify audit log chain integrity
Re-verifies the calling tenant’s audit hash chain and returns a structured verdict (intact, verified count, and the first broken tenant_seq when a break is found). The check is strictly read-only: it recomputes nothing into storage and never mutates an audit record. Use the optional maxRecords query parameter to bound how many records are inspected. Use the optional fromSeq query parameter to start the check at that tenant_seq. When the first record the check reads is not sequence 1, the check trusts that record’s stored link. It does not verify the records before it. The verdict always echoes the effective fromSeq.
Authorizations
Bearer token authentication (format: "Bearer {token}")
Query Parameters
Maximum number of records to inspect; clamped to the server bound. Omit to use the default bound.
1 <= x <= 10000Verification floor: the first record inspected is the one with this tenant_seq. Omit to start at the chain start (seq 1).
x >= 1Response
OK
Effective verification floor: the first tenant_seq eligible for inspection.
1
True when every inspected record links to the previous one and matches its stored hash
true
True when the chain has more records than the inspection bound allowed; the verdict then covers only a prefix
false
Number of records confirmed intact (full inspected count when intact, otherwise the count before the first break)
1024
tenant_seq of the first record that failed verification; omitted when the chain is intact
0

