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

# Retrieve a document

> Retrieve a single document by its ID. 

Only documents that the requesting user is authorized to access will be returned.



## OpenAPI

````yaml /api-reference/openapi-v2.yaml get /api/v2/files/{id}
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v2)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Models
    description: Operations about AI models
  - name: Files Search
    description: Operations about files search
  - name: Files
    description: Operations about files
  - name: Upload Sessions
    description: Operations about upload sessions
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
  - name: Feedbacks
    description: Operations about feedbacks
  - name: Reporting
    description: Operations about reporting
  - name: Monitoring
    description: Operations about monitoring
  - name: Platform Status
    description: Operations about platform status
paths:
  /api/v2/files/{id}:
    get:
      tags:
        - Files
      summary: Retrieve a document
      description: >-
        Retrieve a single document by its ID. 


        Only documents that the requesting user is authorized to access will be
        returned.
      operationId: api_v2_files_retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: The ID of the document to retrieve.
          required: true
        - in: query
          name: include_content
          schema:
            type: boolean
          description: Include the content of the document in the response.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileRetrieveResponseSerializerV2'
          description: ''
      security:
        - bearerAuth: []
components:
  schemas:
    FileRetrieveResponseSerializerV2:
      type: object
      description: Response serializer for file retrieve results.
      properties:
        id:
          type: integer
          description: Unique identifier for the file
        object:
          type: string
          readOnly: true
          description: Object type, always 'file'
        created_at:
          type: integer
          readOnly: true
          description: Unix timestamp of when the file was created
        filename:
          type: string
          readOnly: true
          description: Original filename of the file
        purpose:
          type: string
          readOnly: true
          description: Purpose of the file, always 'documents'
        status:
          type: string
          readOnly: true
          description: Processing status of the file
        signature:
          type: string
          nullable: true
          description: TLSH hash for duplicate detection.
          readOnly: true
        content:
          type: string
          description: Content of the file (included only when include_content=true)
      required:
        - created_at
        - filename
        - id
        - object
        - purpose
        - signature
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````