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_hashstring queryPattern:^[a-fA-F0-9]{64}$. Example:"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"leaf_indexinteger queryRange: at least 0tree_sizeinteger queryRange: at least 0
Responses
200 The requested transparency log data.
application/json ReceiptsMerkleInclusion
algorithmstring requiredExample:"sha256-rfc6962-v1"audit_patharray of stringcanonical_leaf_recordstringincludedboolean requiredleaf_hashstringPattern:^[a-f0-9]{64}$leaf_indexintegerRange: at least 0leaf_recordobjectnotestringroot_hashstringPattern:^[a-f0-9]{64}$signed_tree_headobject or nulltree_sizeinteger requiredRange: at least 0verifiedboolean
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
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
409 The log proof could not be produced consistently.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
422 The query parameters are invalid.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
429 The route throttle limit was exceeded.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string
500 The server-side proof verification failed.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.