Get a log proof
In the Esign Comply API, GET /v1/log/proof computes an inclusion proof for one leaf of the public log, or a consistency proof between two tree sizes. Anyone calls it without a key to check that an entry is in the log and that the log only appends.
GET /v1/log/proof · API version 2026-11-21
Authentication
No credential. Anyone can make this call.
Request example
cURL
curl "https://esigncomply.com/v1/log/proof?leaf_index=935&tree_size=936&environment=test"
This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with ....
What it does
Public. Proofs are lists of hashes and contain no personal data.
The same path serves two kinds of proof, chosen by the query parameters.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
leaf_index |
query | string | No | Inclusion proof: index of the leaf. |
tree_size |
query | string | No | Inclusion proof: tree size. Default: the latest. |
first |
query | string | No | Consistency proof: the earlier tree size. |
second |
query | string | No | Consistency proof: the later tree size. |
environment |
query | string | No | "test" reads the test log. |
Response
200 OK with a LogProof object.
{
"object": "inclusion_proof",
"environment": "test",
"leaf_index": 935,
"tree_size": 936,
"audit_path": [
"537be848...",
"4b21d881...",
"309687db...",
"8c9c9f24...",
"db0ce026...",
"3bad4467...",
"cfbcd2eb..."
],
"root": "f6bec58c..."
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | inclusion_proof or consistency_proof. |
environment |
string | |
leaf_index |
integer | |
tree_size |
integer | |
audit_path |
array of string | |
root |
string | |
first |
integer | |
second |
integer | |
proof |
array of string | |
first_root |
string | |
second_root |
string |
Inclusion proof: query parameters
| Parameter | Required | Description |
|---|---|---|
leaf_index |
Yes | Position of the leaf in the tree, from 0. For a record it is seal.checkpoint.leaf_index on the full record object. |
tree_size |
No | Tree size to prove against. Defaults to the latest checkpoint. Must be greater than leaf_index and at most the current size. |
environment |
No | test for the test log. |
Consistency proof: query parameters
| Parameter | Required | Description |
|---|---|---|
first |
Yes | The earlier tree size. |
second |
No | The later tree size. Defaults to the latest checkpoint. |
environment |
No | test for the test log. |
first_root is null when first is 0.
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | 400: a parameter is not a non-negative integer, leaf_index is outside the tree, tree_size or second is larger than the log, or first is larger than second. The error names the parameter in param. |
Like every call made without a credential, it can also return internal_error.
Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.
Questions about GET /v1/log/proof
Which credential does GET /v1/log/proof need?
None. The call needs no key and no token. Anyone who has the values in the request can make it.
Does GET /v1/log/proof work with a test key?
The call needs no key. It answers for test objects and for live objects alike.
Does GET /v1/log/proof count as a signature event?
No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.
Is GET /v1/log/proof idempotent?
It is a read, so it is safe to repeat. It takes no Idempotency-Key header.
What is the rate limit for GET /v1/log/proof?
The API applies no rate limit of its own to this call. It is a public read of data that is the same for everyone.
Does the Node SDK have a method for GET /v1/log/proof?
No. Call it over HTTP, or with esc.request() in the esigncomply package, which sends the key and returns { data, error }.
Related
- Verification and public log: the overview of the resource and all of its operations.
- Get the sealing keys:
GET /.well-known/jwks.json - Verify a record:
POST /v1/verify - Get a log checkpoint:
GET /v1/log/checkpoint - Verification
- Offline verifier
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21