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

# Merkle Proof

> Retrieve the merkle proof for an allocation, used to verify and claim tokens in merkle-based distributions.



## OpenAPI

````yaml /apis/admin/openapi.json get /api/external/v1/allocations/{id}/merkle-proof
openapi: 3.1.0
info:
  title: Magna Admin API
  version: 1.0.0
  description: >-
    The private, server-to-server API for managing allocations, funding and
    claims, transactions, portals, and token data. Authenticated with a project
    API key sent in the `x-magna-api-token` header.
servers:
  - url: https://app.magna.so
    description: Production
security:
  - apiToken: []
paths:
  /api/external/v1/allocations/{id}/merkle-proof:
    get:
      tags:
        - Allocations
      summary: Merkle Proof
      description: >-
        Retrieve the merkle proof for an allocation, used to verify and claim
        tokens in merkle-based distributions.
      operationId: getAllocationsByIdMerkleProof
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type:
              - string
            minLength: 1
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  isProcessed:
                    type: boolean
                  result:
                    description: Endpoint-specific result payload.
              example:
                isProcessed: true
                result:
                  id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                  decodableArgs: >-
                    0x1234567890abcdef1234567890abcdef12345678901234567890abcdef12345678
                  hash: >-
                    0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab
                  walletAddress: '0x742d35Cc6634C0532925a3b8D8c9f82bA2D2BbEc'
                  proof:
                    - >-
                      0x1111111111111111111111111111111111111111111111111111111111111111
                    - >-
                      0x2222222222222222222222222222222222222222222222222222222222222222
                    - >-
                      0x3333333333333333333333333333333333333333333333333333333333333333
                  input: null
                  merkleTreeId: 9876543a-bcde-f012-3456-789abcdef012
                  distributionId: fedcba98-7654-3210-fedc-ba9876543210
                  rootIndex: 42
                  createdAt: '2024-04-15T21:26:21.000Z'
                  updatedAt: '2024-04-15T21:26:21.000Z'
        '400':
          description: Validation error
        '401':
          description: Missing or invalid API token
        '403':
          description: API token lacks the required scope or project access
components:
  securitySchemes:
    apiToken:
      type: apiKey
      in: header
      name: x-magna-api-token

````