DorkOS
ApiAuditVerify

Check the audit log

GET
/api/audit/verify

Check that the DorkOS audit log has not been edited: walk its hash chain and recompute every link. Returns ok, how many rows were checked, the last row and its hash, and — if the chain is broken — the first row that does not check out and why. One call checks at most 100,000 rows; when more remain, call again with fromSeq set to nextFromSeq and prevHash set to lastHash.

Query Parameters

fromSeq?integer
Range0 < value
limit?integer
Range0 < value <= 100000
prevHash?string
Match^[0-9a-f]{64}$

Response Body

application/json

curl -X GET "https://example.com/api/audit/verify"
{  "ok": true,  "checked": 0,  "lastSeq": 0,  "lastHash": "string",  "firstBreak": {    "seq": 0,    "reason": "string"  },  "nextFromSeq": 1}