> ## Documentation Index
> Fetch the complete documentation index at: https://docs.timelockdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate Merkle Proof

No authentication required. Submit a Merkle proof for server-side validation. The API recomputes the root from the provided proof path and compares it against the expected root.


## OpenAPI

````yaml POST /merkle/validate
openapi: 3.0.0
info:
  title: TimeLockData API
  description: Public API for evidence management and blockchain traceability
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.timelockdata.com/api/v1
    description: Production
security: []
tags: []
paths:
  /merkle/validate:
    post:
      tags:
        - Merkle Tree
      summary: Validate a Merkle proof
      operationId: MerkleController_validateProof
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ValidateMerkleProofRequest'
      responses:
        '200':
          description: Validation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidateMerkleProofResponse'
components:
  schemas:
    ValidateMerkleProofRequest:
      type: object
      properties:
        txId:
          type: string
          description: Transaction ID to validate
        merkleRoot:
          type: string
          description: Merkle root to validate against
        proof:
          description: Merkle proof path
          type: array
          items:
            $ref: '#/components/schemas/MerkleProofNode'
      required:
        - txId
        - merkleRoot
        - proof
    ValidateMerkleProofResponse:
      type: object
      properties:
        status:
          type: string
          description: Response status
        valid:
          type: boolean
          description: Whether the proof is valid
        computedRoot:
          type: string
          description: Computed root from proof
        expectedRoot:
          type: string
          description: Expected root
        error:
          type: string
          description: Error message if applicable
      required:
        - status
        - valid
    MerkleProofNode:
      type: object
      properties:
        hash:
          type: string
          description: Hash value of the sibling node
        position:
          type: string
          description: Position of the sibling (left or right)
          enum:
            - left
            - right
      required:
        - hash
        - position

````