> ## 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

> Downloads a module as a ZIP file containing the source code (src/ directory), Scarb.toml configuration, and the compiled program JSON. Returns the latest version of the module.



## OpenAPI

````yaml /data-processor-api/openapi/openapi-hdp-server.json get /modules/{id}/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/{id}/download:
    get:
      tags:
        - modules
      summary: Download module
      description: >-
        Downloads a module as a ZIP file containing the source code (src/
        directory), Scarb.toml configuration, and the compiled program JSON.
        Returns the latest version of the module.
      operationId: downloadModule
      parameters:
        - name: id
          in: path
          description: The unique identifier of the module to download
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Module ZIP file
          content:
            application/zip: {}
        '404':
          description: Module not found
        '500':
          description: Internal server error

````