Verify the evidence chain
GET
/v1/loans/{ref}/evidence/verify
const url = 'http://localhost:8080/v1/loans/example/evidence/verify';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/v1/loans/example/evidence/verifyRecomputes 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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ref
required
string
Responses
Section titled “Responses”OK
Media typeapplication/json
object
intact
required
boolean
brokenAtSeq
required
null | integer | string format: int32
length
required
integer | string format: int32
Examplegenerated
{ "intact": true, "brokenAtSeq": 1, "length": 1}