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

# Download Document

Issues a **302 Found** redirect to a time-limited presigned URL where the translated file can be downloaded. Your HTTP client should follow redirects or read the `Location` header.

## Description

The route resolves files under the `documents/{document_id}` prefix in object storage. If you omit `locale`, the service picks a default object (matching the original document name pattern). If you pass `locale`, it prefers keys whose names include that locale (for example `[en-us]` in the stored file name).

Failure cases return **404** with a short **plain-text** message (`Document not found.`, `Locale not found.`, etc.).


## OpenAPI

````yaml get /v1/document/{document_id}/download
openapi: 3.1.0
info:
  title: Lingopal VOD API
  description: API for Video on Demand processing, transcription, and translation services
  version: 0.0.1
servers:
  - url: https://api.lingopal.ai
security: []
paths:
  /v1/document/{document_id}/download:
    get:
      tags:
        - document
      summary: Download Document
      operationId: download_document_v1_document__document_id__download_get
      parameters:
        - name: document_id
          in: path
          required: true
          schema:
            type: string
            title: Document Id
        - name: locale
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Locale
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key

````