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

# Download file

> Download file content



## OpenAPI

````yaml GET /files/{id}/download
openapi: 3.1.0
info:
  title: Null Drop API v2
  description: Optimized API for file management (upload, download, list, delete)
  version: 2.0.0
servers:
  - url: https://nulldrop.xyz/api/v2
security:
  - bearerAuth: []
paths:
  /files/{id}/download:
    get:
      summary: Download a file
      description: Download file content
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: File ID
      responses:
        '200':
          description: File content
          content:
            '*/*':
              schema:
                type: string
                format: binary
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: File not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key authentication (format: nd_xxxxx)'

````