> ## 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 is valid root



## OpenAPI

````yaml https://gateway.id-infra.worldcoin.dev/openapi.json get /is-valid-root
openapi: 3.1.0
info:
  title: world-id-gateway
  description: ''
  license:
    name: MIT
    identifier: MIT
  version: 0.1.4
servers: []
security: []
tags:
  - name: Gateway
    description: TODO
paths:
  /is-valid-root:
    get:
      tags:
        - Gateway
      operationId: _doc_is_valid_root
      parameters:
        - name: root
          in: path
          description: Root to validate (hex string).
          required: true
          schema:
            type: string
      responses:
        '200':
          description: TODO
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IsValidRootResponse'
        '400':
          description: TODO
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceApiError'
components:
  schemas:
    IsValidRootResponse:
      type: object
      description: Response payload for root validity checks.
      required:
        - valid
      properties:
        valid:
          type: boolean
          description: Whether the root is currently valid on-chain.
    ServiceApiError:
      type: object
      description: Error object returned by the services APIs (indexer, gateway).
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/GatewayErrorCode'
          description: The error code.
        message:
          type: string
          description: Human-readable error message.
    GatewayErrorCode:
      type: string
      description: Gateway error codes.
      enum:
        - internal_server_error
        - not_found
        - bad_request
        - batcher_unavailable
        - authenticator_already_exists
        - authenticator_does_not_exist
        - mismatched_signature_nonce
        - pubkey_id_in_use
        - pubkey_id_out_of_bounds
        - authenticator_does_not_belong_to_account
        - transaction_reverted
        - confirmation_error
        - duplicate_request_in_flight
        - rate_limit_exceeded
        - request_timeout
        - method_not_available

````