Developer API

Issue and verify receipts.

A small authenticated API for attaching durable provenance to consequential machine output. OpenAPI is available at /openapi.json.

Core endpoints

POST /v1/proofs creates an immutable receipt. POST /v1/verify verifies a proof ID + receipt hash without exposing private provenance fields.

Authentication

Creation requests use pg-hmac-sha256-v1. The exact request bytes plus timestamp, request ID, source system and key ID are bound into the HMAC preimage.

X-Signature-Version: pg-hmac-sha256-v1
X-Timestamp: 1789999999
X-Request-ID: run-018f2
X-Source-System: agent-prod
X-Key-ID: key-2026-09
X-Signature: <64 hex HMAC-SHA256>

Creation body

{
  "artifact": {"uri": "https://trusted-storage.com/runs/42.json", "file_hash": "<sha256>"},
  "actor": {"external_ref": "agent-run-42"},
  "claim": {"schema": "pg.claim.v1", "assertion": "model emitted artifact"}
}

Verification body

{"proof_id":"pg_…","proof_hash":"<64 hex receipt hash>"}
ProofGraph verifies provenance and receipt integrity. It does not certify the factual truth, quality, safety or legality of the underlying assertion.