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

# Download a spec package

> The package archive (`.tgz`: Lean sources + manifest). On AWS the API answers with a 302 redirect to a pre-signed S3 URL. Packages are immutable and cached for a year.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/specs/{org}/{model}/{version}/package
openapi: 3.1.0
info:
  title: Spec Hub API
  version: '1'
  description: >-
    The registry of Lean 4 specification packages, the cloud verification queue
    and the Lemma Hub. The `theformalera` CLI is the main client; this API is
    what it calls.
servers:
  - url: https://hub.theformalera.com
    description: Spec Hub
  - url: http://127.0.0.1:8700
    description: Local Hub (`theformalera-hub serve`)
security: []
tags:
  - name: Registry
    description: 'Public: no token needed.'
  - name: Verification
    description: Cloud solving (`runner = "cloud"`).
  - name: Lemma Hub
    description: Lemma retrieval, deposit and usage statistics.
paths:
  /v1/specs/{org}/{model}/{version}/package:
    get:
      tags:
        - Registry
      summary: Download a spec package
      description: >-
        The package archive (`.tgz`: Lean sources + manifest). On AWS the API
        answers with a 302 redirect to a pre-signed S3 URL. Packages are
        immutable and cached for a year.
      operationId: package_v1_specs__org___model___version__package_get
      parameters:
        - name: org
          in: path
          required: true
          schema:
            type: string
          description: Organisation part of the model key, e.g. `Qwen`.
        - name: model
          in: path
          required: true
          schema:
            type: string
          description: Model part of the model key, e.g. `Qwen3.8-27B`.
        - name: version
          in: path
          required: true
          schema:
            type: string
          description: Full package version, e.g. `1.0.0`.
      responses:
        '200':
          description: The package archive.
          content:
            application/gzip:
              schema:
                type: string
                format: binary
        '302':
          description: Redirect to a pre-signed download URL (S3 store).
        '404':
          description: No such package.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security: []
components:
  schemas:
    Error:
      type: object
      properties:
        detail:
          type: string
          description: Why the request was refused.
      required:
        - detail

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.