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

# Download Shared File

> Download a file using a secure share token.

The token must be valid and not expired. No authentication required
as the token itself provides access control.

Args:
    token: Secure random token from file share
    
Returns:
    PDF file as attachment with proper headers
    
Raises:
    404: Token not found
    410: Token has expired
    500: Storage download failed



## OpenAPI

````yaml openapi.json get /download/{token}
openapi: 3.1.0
info:
  title: Forms API
  version: 0.1.0
servers: []
security: []
paths:
  /download/{token}:
    get:
      summary: Download Shared File
      description: |-
        Download a file using a secure share token.

        The token must be valid and not expired. No authentication required
        as the token itself provides access control.

        Args:
            token: Secure random token from file share
            
        Returns:
            PDF file as attachment with proper headers
            
        Raises:
            404: Token not found
            410: Token has expired
            500: Storage download failed
      operationId: download_shared_file_download__token__get
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
            title: Token
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
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

````