Skip to content
Sign in Create account

Returns an inclusion proof for a leaf hash or index at the selected tree size

GET /api/v1/transparency/merkle/proof/inclusion

Returns an inclusion proof for a leaf hash or index at the selected tree size. Supply either leaf_hash or leaf_index; tree_size is optional.

The public Merkle endpoints return tree metadata and proofs. Query limits are clamped by the handler.

This operation needs no authentication.

Parameters

  • leaf_hash string query
    Pattern: ^[a-fA-F0-9]{64}$. Example: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  • leaf_index integer query
    Range: at least 0
  • tree_size integer query
    Range: at least 0

Responses

200 The requested transparency log data.

application/json ReceiptsMerkleInclusion

  • algorithm string required
    Example: "sha256-rfc6962-v1"
  • audit_path array of string
  • canonical_leaf_record string
  • included boolean required
  • leaf_hash string
    Pattern: ^[a-f0-9]{64}$
  • leaf_index integer
    Range: at least 0
  • leaf_record object
  • note string
  • root_hash string
    Pattern: ^[a-f0-9]{64}$
  • signed_tree_head object or null
  • tree_size integer required
    Range: at least 0
  • verified boolean

Generated sample

{
  "algorithm": "sha256-rfc6962-v1",
  "audit_path": [
    "string"
  ],
  "canonical_leaf_record": "string",
  "included": true,
  "leaf_hash": "string",
  "leaf_index": 0,
  "leaf_record": {},
  "note": "string",
  "root_hash": "string",
  "signed_tree_head": {},
  "tree_size": 0,
  "verified": true
}
404 The selected tree head or leaf is unavailable.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

409 The log proof could not be produced consistently.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

422 The query parameters are invalid.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

429 The route throttle limit was exceeded.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string

500 The server-side proof verification failed.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.