API reference
The LlamaGuard Proof client API indexes the Midas registry and resolves content-addressed documents from IPFS. Use it to browse proofs and retrieve complete attestation or verification documents.
The API is a convenience layer. The independent verification flow uses the on-chain registry and IPFS directly.
Base URL
https://client-api.llamarisk.comProofs
GET /protocols/midas/proof
Returns all indexed Midas proofs.
curl https://client-api.llamarisk.com/protocols/midas/proofGET /protocols/midas/proof/:proofId
Returns the latest attestation metadata for a proof.
| Parameter | Location | Type | Description |
|---|---|---|---|
proofId | Path | bytes32 | Proof identifier |
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>Attestations
GET /protocols/midas/proof/:proofId/attestations
Returns the attestation history for a proof.
| Parameter | Location | Type | Description |
|---|---|---|---|
proofId | Path | bytes32 | Proof identifier |
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestationsGET /protocols/midas/proof/:proofId/attestations/:attestationHash
Resolves the attestation hash to its IPFS document and returns the claims, source evidence, and metadata.
| Parameter | Location | Type | Description |
|---|---|---|---|
proofId | Path | bytes32 | Proof identifier |
attestationHash | Path | bytes32 | Attestation content hash |
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestations/<attestationHash>Verifications
GET /protocols/midas/proof/:proofId/attestations/:attestationHash/verifications
Returns every indexed verification report for an attestation.
| Parameter | Location | Type | Description |
|---|---|---|---|
proofId | Path | bytes32 | Proof identifier |
attestationHash | Path | bytes32 | Attestation content hash |
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestations/<attestationHash>/verificationsGET /protocols/midas/proof/:proofId/attestations/:attestationHash/verifications/:verificationHash
Returns one verification document, including its per-claim results and summary.
| Parameter | Location | Type | Description |
|---|---|---|---|
proofId | Path | bytes32 | Proof identifier |
attestationHash | Path | bytes32 | Attestation content hash |
verificationHash | Path | bytes32 | Verification content hash |
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestations/<attestationHash>/verifications/<verificationHash>Verify without the API
Read the registry
Call proofIdToLatestAttestation(proofId) on MidasSaveRegistryWithClaim to obtain the current attestation hash.
Derive the IPFS CID
Convert the SHA-256 content hash stored by the registry into the corresponding IPFS CID.
Fetch and inspect the document
Download the content from an IPFS gateway, decompress the gzip payload, and confirm that its digest matches the on-chain hash.
Run the verifier
Parse the attestation and run verifyAttestation() from @save/core, or inspect its claims and evidence directly.
import { verifyAttestation } from '@save/core';
const attestation = JSON.parse(decompressedData);
const result = await verifyAttestation(attestation, {
verifier: { name: 'My Verifier', publicKey: myKey },
verifiedAt: new Date().toISOString(),
signingKey: myPrivateKey,
});
console.log(result.summary.overallStatus);The overall status is Valid, Invalid, or Uncertain. Inspect the per-claim results before treating the summary as an integration decision.