Verify audit chain
Re-walks the workspace’s tamper-evident audit hash chain and reports whether it is intact. Admin only. Checks the most recent entries (the limit query parameter defaults to 10000 and is clamped to 1-100000), recomputing each entry’s hash and verifying it links to its predecessor. Returns whether the chain is ok, how many entries were checked, the first and last sequence numbers covered, and, if broken, the sequence number where it first fails and whether the break is a content or linkage mismatch.
Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Query Parameters
Verify the most recent limit entries by seq (default 10000, max
100000). The chain is walked in ascending seq order; the entry at
min_seq - 1 is fetched as the linkage anchor.
Response
Chain verification result
How many entries were walked.
True iff every checked entry's hash recomputes AND links to its predecessor. A single edited/inserted/removed/reordered row flips this.
The seq where the chain first breaks (None when ok).
"content" (entry hash doesn't recompute) or "linkage" (prev_hash
doesn't match the predecessor's entry hash).