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

# Download module by program hash

> Downloads a module by its compiled program hash as a ZIP file. Useful when you have the program hash from a task and want to retrieve the associated module source code and configuration.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json get /modules/by-hash/{hash}/download
openapi: 3.1.0
info:
  title: Herodotus Data Processor Server API
  description: API documentation for the Herodotus Data Processor Server
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://staging.hdp.api.herodotus.cloud
    description: Staging API endpoint
security: []
tags:
  - name: tasks
    description: Task management endpoints
  - name: health
    description: Health check endpoints
  - name: modules
    description: Module registry endpoints
paths:
  /modules/by-hash/{hash}/download:
    get:
      tags:
        - modules
      summary: Download module by program hash
      description: >-
        Downloads a module by its compiled program hash as a ZIP file. Useful
        when you have the program hash from a task and want to retrieve the
        associated module source code and configuration.
      operationId: downloadModuleByHash
      parameters:
        - name: hash
          in: path
          description: The program hash (hex string starting with 0x)
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Module ZIP file
          content:
            application/zip: {}
        '404':
          description: Module not found for the given program hash
        '500':
          description: Internal server error

````