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

# Download Esx

> Authorize an organization and redirect to a freshly signed ESX object.



## OpenAPI

````yaml /openapi.json get /{document_id}.esx
openapi: 3.1.0
info:
  title: Capout API
  description: >-
    Programmatic REST, WebSocket, and SSE API for uploading documents, tracking
    processing status, and reading claim balances.
  version: 1.0.0
servers:
  - url: https://api.capout.ai
    description: Public API
security: []
paths:
  /{document_id}.esx:
    get:
      tags:
        - ESX Downloads
      summary: Download Esx
      description: Authorize an organization and redirect to a freshly signed ESX object.
      operationId: download_esx__document_id__esx_get
      parameters:
        - name: document_id
          in: path
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 128
            description: Capout document ID, without the .esx suffix
            title: Document Id
          description: Capout document ID, without the .esx suffix
        - name: profile
          in: query
          required: false
          schema:
            enum:
              - contractor
              - carrier
            type: string
            description: >-
              ESX profile to download. Contractor (8D) is the default; Carrier
              uses 5L.
            default: contractor
            title: Profile
          description: >-
            ESX profile to download. Contractor (8D) is the default; Carrier
            uses 5L.
      responses:
        '307':
          description: Redirect to a fresh signed S3 download URL
        '401':
          description: A valid capout-api-key header is required
        '404':
          description: >-
            Document is unknown or inaccessible, or the requested ESX profile
            was not found
        '409':
          description: The ESX export is not ready to download
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: The signed download URL could not be issued
        '503':
          description: Durable download lookup is unavailable
      security:
        - CapoutApiKey: []
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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    CapoutApiKey:
      type: apiKey
      description: Organization-scoped CapOut API key
      in: header
      name: capout-api-key

````