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

# Fetch from IPFS

> Retrieve content from IPFS by its CID hash via the Kleros gateway



## OpenAPI

````yaml GET /ipfs/{hash}
openapi: 3.1.0
info:
  title: Kleros IPFS Gateway
  description: >-
    HTTP API for uploading and retrieving content from the Kleros IPFS content
    delivery network. Used to store dispute templates, evidence files, policy
    documents, and Curate item metadata.
  version: 1.0.0
  contact:
    name: Kleros Integrations
    email: integrations@kleros.io
    url: https://discord.gg/kleros
servers:
  - url: https://cdn.kleros.link
    description: Kleros IPFS CDN (mainnet + testnet)
security: []
paths:
  /ipfs/{hash}:
    get:
      summary: Fetch content from IPFS
      description: >-
        Retrieve a file or directory from IPFS by its CID hash. Returns the raw
        content. For JSON files (dispute templates, evidence, policy docs) the
        response body is the parsed JSON.
      operationId: getIpfsContent
      parameters:
        - name: hash
          in: path
          required: true
          description: >-
            The IPFS CID (v0 or v1) of the content to retrieve. May include a
            subpath for directory traversal, e.g. `QmHash.../metadata.json`.
          schema:
            type: string
            example: QmTaZuQjJT9NZCYsqyRmEwLb1Vt3gme1a6BS4NQLiWXtH2
      responses:
        '200':
          description: Content retrieved successfully
          content:
            application/json:
              schema:
                type: object
                description: >-
                  For JSON files: the parsed content. Schema varies by content
                  type (dispute template, evidence, policy doc).
                example:
                  title: Should this item be accepted into the registry?
                  description: Evaluate whether the item meets the registry criteria.
                  question: Does this item comply with the required criteria?
                  answers:
                    - id: '0x00'
                      title: Refuse to Arbitrate
                    - id: '0x01'
                      title: 'Yes'
                    - id: '0x02'
                      title: 'No'
            application/octet-stream:
              schema:
                type: string
                format: binary
                description: Raw binary content for non-JSON files (images, PDFs, etc.)
        '404':
          description: Content not found or not yet propagated to this gateway

````