Skip to content

Verify the evidence chain

GET
/v1/loans/{ref}/evidence/verify
curl --request GET \
--url http://localhost:8080/v1/loans/example/evidence/verify

Recomputes the SHA-256 hash chain over the loan’s evidence events and reports whether it is intact, its length and, if broken, the first sequence number that fails. Any staff role or an API key with evidence:read. 404 for an unknown loan.

ref
required
string

OK

Media typeapplication/json
object
intact
required
boolean
brokenAtSeq
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
length
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
Examplegenerated
{
"intact": true,
"brokenAtSeq": 1,
"length": 1
}