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

# Runtime Get Download

> Create a short-lived signed download URL from deployed server code. The injected runtime capability fixes the project and environment; keys resolve only inside that scope or an optional project-visible bucket.



## OpenAPI

````yaml /openapi.json post /v1/runtime/storage/downloads
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/runtime/storage/downloads:
    post:
      tags:
        - storage
      summary: Runtime Get Download
      description: >-
        Create a short-lived signed download URL from deployed server code. The
        injected runtime capability fixes the project and environment; keys
        resolve only inside that scope or an optional project-visible bucket.
      operationId: storage.runtimeGetDownload
      parameters:
        - name: bucket
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z][a-z0-9-]{1,61}$
          description: >-
            Bucket name to address (see buckets.list). The bucket must belong to
            this organization and be either an organization-level shared bucket
            or scoped to this project — any other name answers 404. Omitted, the
            operation addresses the project's original per-environment storage
            scope, exactly as before buckets existed; that legacy scope is
            separate from every named bucket, including the project's default
            bucket. The runtime capability still fixes the project and
            environment. With a bucket, the key resolves only in a
            project-visible bucket namespace.
      requestBody:
        required: true
        x-korve-max-bytes: 1048576
        content:
          application/json:
            schema:
              type: object
              properties:
                key:
                  type: string
                  minLength: 1
                  description: Scope-relative object key.
              required:
                - key
              additionalProperties: false
      responses:
        '200':
          description: Short-lived signed download.
          content:
            application/json:
              schema:
                type: object
                properties:
                  url:
                    type: string
                  expiresAt:
                    type: string
                    format: date-time
                required:
                  - url
                  - expiresAt
        '401':
          description: >-
            Runtime capability is absent, invalid, expired, or lacks storage
            download access.
        '402':
          description: Organization billing is not active.
        '404':
          description: No such project-visible bucket.
        '422':
          description: Missing or invalid key.
      security:
        - appService: []
components:
  securitySchemes:
    appService:
      type: http
      scheme: bearer
      bearerFormat: korve_app_service

````