Verify a KTL entry by sequence number
const url = 'https://localhost:3001/api/api/v1/ktl/verify/1';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3001/api/api/v1/ktl/verify/1Public: fetch a historical KTL entry by sequence number and its inclusion proof against the latest published root. Roots are unsigned in this deployment, so the proof shows consistency with what this server publishes and cannot on its own detect a server that rewrote its own log. Returns 400 when seq is not an integer or is below 1, 404 when no entry carries that sequence number, and 503 unless the operator set ZENTALK_KTL_PUBLIC_READ=true. Walking sequence numbers enumerates every wallet in the log, so this route carries a dedicated rate-limit tier. The response carries leaf_index, the entry’s zero-based position in the Merkle tree; the inclusion proof is built for that index and not for seq-1. seq addresses the route, leaf_index addresses the tree, and the two diverge as soon as one append has rolled back.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sequence number
Responses
Section titled “Responses”OK
object
Examplegenerated
{}Bad Request
object
Examplegenerated
{ "error": "example", "success": true}Not Found
object
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
object
Examplegenerated
{ "error": "example", "success": true}Service Unavailable
object
Examplegenerated
{ "error": "example", "success": true}