Overview

The Evidence API generates cryptographically signed evidence packages from mandate action chains. It supports dual-signing, content hash verification, and multiple export formats (JSON, PDF, XML) suitable for court submissions and regulatory filings.

Endpoints

MethodPathDescription
GET/keysList all agent public keys
GET/keys/:agentIdGet specific agent's public key
POST/evidenceGenerate evidence package for a mandate
GET/evidence/:idRetrieve stored evidence package
GET/evidence/:id/verifyVerify action record content hash
POST/evidence/:id/signSign an evidence package (dual-signing)
POST/evidence/:id/exportExport in json|pdf|xml
GET/evidence-packages/templatesList evidence template definitions
POST/evidence-packages/generateGenerate from named template

Example

curl -X POST http://localhost:4000/evidence \
  -H "Content-Type: application/json" \
  -d '{"mandate_id":"...","package_type":"court_submission"}'