How to check a workspace's whole receipt chain (GET /api/verify/chain)
Call GET /api/verify/chain?workspaceId=... with your key or a signed-in session. It checks every receipt link in that workspace and returns intact, length, head and links.
Last updated
Steps
Find your workspace id
It is
receipt.workspaceIdon any of your score responses.Check the chain
curl -s "https://api.clearrun.net/api/verify/chain?workspaceId=WORKSPACE_ID" \ -H "Authorization: Bearer $CLEARRUN_API_KEY"Read the result
intact: truemeans each receipt points to the one before it and nothing in between is missing or changed.lengthis how many receipts.headis the latest receipt hash.
Errors
- 400
workspaceId is required - 404
Workspace not found: not on your account - 401 or 403 as on other keyed routes
One receipt only?
Use the public lookup. See How to look up a verdict with GET /api/verify/{verdictId}.