Skip to content

HTTP API

Most gateway endpoints use /v1 URLs. The signed formats are described in Protocol v2. Use 64 hex characters for a SHA-256 hash. The OpenAPI document defines the request and response schemas.

Method Path Response or purpose
GET /health Gateway liveness.
GET /v1/config Informational network summary.
GET /v1/network Current public verification config.
GET /v1/key-history Signed key history; verify against your pin.
POST /v1/attestations Submit {"hash":"…"} and receive a job snapshot.
GET /v1/attestations/{hash} Poll a job; a confirmed snapshot contains signed_attestation.
POST /v1/verify Submit {"attestation": <SignedAttestation>} for the gateway's verdict. Prefer local verification.
GET /v1/bundle/{hash} Confirmed receipt, plus an inclusion proof if covered by the latest published checkpoint.
GET /checkpoint Latest checkpoint as a plain-text C2SP signed note.
GET /tile/{level}/{index}[.p/{width}] Merkle hash tile, as consecutive 32-byte hashes.
GET /v1/log/checkpoint Latest checkpoint, as {"checkpoint":"<note>"}.
GET /v1/log/checkpoint/{tree_size} Checkpoint at a published size, in the same JSON wrapper.
GET /v1/log/consistency?first=SIZE&second=SIZE Proof that the first tree is a prefix of the second. Both sizes must be published.
GET /v1/log/proof?hash=HASH&tree_size=SIZE Inclusion proof for the receipt leaf at the given published size.
GET /v1/evidence/{hash} Evidence package for a receipt, once its batch is complete; 404 before that or when issuance is off.

An authenticated WebSocket at /ws/events broadcasts confirmed attestations only. It is disabled without a configured token. See the AsyncAPI document and error handling. The signer API is separate from the gateway.