LlamaRisk

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.com

Proofs

GET /protocols/midas/proof

Returns all indexed Midas proofs.

curl https://client-api.llamarisk.com/protocols/midas/proof

GET /protocols/midas/proof/:proofId

Returns the latest attestation metadata for a proof.

ParameterLocationTypeDescription
proofIdPathbytes32Proof 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.

ParameterLocationTypeDescription
proofIdPathbytes32Proof identifier
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestations

GET /protocols/midas/proof/:proofId/attestations/:attestationHash

Resolves the attestation hash to its IPFS document and returns the claims, source evidence, and metadata.

ParameterLocationTypeDescription
proofIdPathbytes32Proof identifier
attestationHashPathbytes32Attestation 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.

ParameterLocationTypeDescription
proofIdPathbytes32Proof identifier
attestationHashPathbytes32Attestation content hash
curl https://client-api.llamarisk.com/protocols/midas/proof/<proofId>/attestations/<attestationHash>/verifications

GET /protocols/midas/proof/:proofId/attestations/:attestationHash/verifications/:verificationHash

Returns one verification document, including its per-claim results and summary.

ParameterLocationTypeDescription
proofIdPathbytes32Proof identifier
attestationHashPathbytes32Attestation content hash
verificationHashPathbytes32Verification 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.

On this page