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

# Get Inclusion Proof

> Returns a Merkle inclusion proof for the given leaf index to the current `WorldIDRegistry` tree. In
addition, it also includes the entire authenticator slot list for the World ID account.
Removed authenticators are represented as `null` entries to preserve `pubkey_id` positions.



## OpenAPI

````yaml https://indexer.us.id-infra.worldcoin.dev/openapi.json post /inclusion-proof
openapi: 3.1.0
info:
  title: world-id-indexer
  description: ''
  license:
    name: MIT
    identifier: MIT
  version: 0.1.5
servers: []
security: []
tags:
  - name: indexer
    description: >-
      World ID Indexer. Provides Merkle inclusion proofs and account information
      from the on-chain registry.
paths:
  /inclusion-proof:
    post:
      tags:
        - indexer
      summary: Get Inclusion Proof
      description: >-
        Returns a Merkle inclusion proof for the given leaf index to the current
        `WorldIDRegistry` tree. In

        addition, it also includes the entire authenticator slot list for the
        World ID account.

        Removed authenticators are represented as `null` entries to preserve
        `pubkey_id` positions.
      operationId: handler
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IndexerQueryRequest'
        required: true
      responses:
        '200':
          description: Merkle inclusion proof with authenticator public keys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountInclusionProofSchema'
components:
  schemas:
    IndexerQueryRequest:
      type: object
      description: |-
        Query for the indexer based on a leaf index.

        Used for getting inclusion proofs and signature nonces.
      required:
        - leaf_index
      properties:
        leaf_index:
          type: string
          format: hex
          description: |-
            The leaf index to query (from the `WorldIDRegistry`).

            Accepts decimal or `0x`/`0X`-prefixed hex input.
          example: '0x1'
    AccountInclusionProofSchema:
      type: object
      description: OpenAPI schema representation of the `AccountInclusionProof` response.
      required:
        - root
        - leaf_index
        - siblings
        - authenticator_pubkeys
      properties:
        authenticator_pubkeys:
          type: array
          items:
            type:
              - string
              - 'null'
            format: hex
          description: >-
            The compressed authenticator public keys for the account.


            Entries are optional to preserve sparse slot positions (`null` for
            removed authenticators).
        leaf_index:
          type: string
          format: hex
          description: The World ID's leaf position in the Merkle tree
          example: '0x2a'
        root:
          type: string
          format: hex
          description: The root hash of the Merkle tree (hex string)
          example: '0x1a2b3c4d5e6f7890'
        siblings:
          type: array
          items:
            type: string
            format: hex
          description: The sibling path up to the Merkle root (array of hex strings)

````