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

# Download File Content

> Streams the file bytes directly if authorized. The response will set the
`Content-Type` header to the file's detected MIME type.



## OpenAPI

````yaml https://api.chunkr.ai/docs/openapi.json get /files/{file_id}/content
openapi: 3.1.0
info:
  title: Chunkr API
  description: >-
    API service for document layout analysis and chunking to convert document
    into RAG/LLM-ready data.
  contact:
    name: Chunkr
    url: https://chunkr.ai
    email: ishaan@lumina.sh
  license:
    name: ''
  version: 2.62.0
servers:
  - url: https://api.chunkr.ai
    description: Chunkr API
security: []
tags:
  - name: Files
    description: Endpoints for uploading and managing files
  - name: Health
    description: Endpoint for checking the health of the service.
  - name: Tasks
    description: Endpoints for uploading and managing tasks
  - name: Webhook
    description: Endpoints for managing webhooks
paths:
  /files/{file_id}/content:
    get:
      tags:
        - Files
      summary: Download File Content
      description: |-
        Streams the file bytes directly if authorized. The response will set the
        `Content-Type` header to the file's detected MIME type.
      operationId: get_file_content_route
      parameters:
        - name: file_id
          in: path
          description: ID of the file
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Raw file bytes
          headers:
            Content-Type:
              schema:
                type: string
              description: MIME type of the returned file content
        '401':
          description: Unauthorized
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: File not found
          content:
            text/plain:
              schema:
                type: string
        '500':
          description: Server error
          content:
            text/plain:
              schema:
                type: string
      security:
        - api_key: []
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: Authorization

````