Webhook Auto-Verify
Working example of automatic receipt verification.
Open demoCommandLayer receipts can be verified automatically by apps, webhooks, SDKs, MCP flows, badges, and agent-to-agent systems.
The webhook auto-verify example demonstrates this server-side. The public demo demonstrates the same flow in the browser using runtime signing and runtime verification.
Runtime: https://runtime.commandlayer.org
Verifier: https://runtime.commandlayer.org/verify
Working example of automatic receipt verification.
Open demoPaste receipt JSON and inspect each verification check.
Open verifierProgrammatically verify receipts with POST https://runtime.commandlayer.org/verify.
Backend receives receipt, verifies it server-side, and accepts/rejects the event.
Open demo pageDisplay verification state in a UI.
Open badge demoUse @commandlayer/agent-sdk or direct runtime calls in application code.
This is the no-paste model: POST /webhook receives { event, receipt }, the server posts { receipt } to the verifier, valid proof returns accepted, and tampered proof returns rejected.
cd examples/webhook-auto-verify npm install npm run generate:samples npm start curl -X POST http://localhost:3000/webhook \ -H "Content-Type: application/json" \ --data @sample-valid-webhook.json curl -X POST http://localhost:3000/webhook \ -H "Content-Type: application/json" \ --data @sample-tampered-webhook.json Expected: valid -> 200 accepted tampered -> 400 rejected
Schema-valid alone is not verified. Verification requires hash and signature checks.
Webhook sender authentication is separate from receipt verification. Production webhooks still need sender authentication, replay protection, timestamps, rate limits, and idempotency.
Demo verification routes are available for illustrative receipt IDs:
Live today: manual verifier, runtime /verify, webhook auto-verify example, SDK/runtime verification, and embedded badge demo.
Planned: managed webhook delivery network, third-party callbacks, continuous monitoring, replay-check service, and dashboard/history pipelines.