Receipts

Verify a report receipt

Checks whether a receipt block was issued by Tamperlens and whether it covers the report you send with it.

Tamperlens never stores the documents it inspects, so it cannot reproduce a report to settle a dispute. The receipt is the alternative: you keep the report and its receipt, and this endpoint confirms the pair.

Send the report exactly as you received it, including the id. Remove the receipt key itself, a receipt cannot cover itself, or leave it in place; both are accepted, and it is stripped before hashing either way.

valid: false carries a reason: bad_signature means we did not issue this receipt at all, while report_mismatch means the receipt is genuine but the report you sent is not the one it was issued for. Those are different problems and the endpoint will not collapse them.

post/api/v1/receipt/verify

Request

  • Base URL: https://tamperlens.com (the document declares no server; this is the origin it was published from)
  • URL: https://tamperlens.com/api/v1/receipt/verify
  • Auth: none declared

Request body

reportobject required
receiptobject required

Response

Default Response

validboolean
reasonstring

Changes

No recorded changes to this operation across all 1 revision of this API.