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

# Get File Content

> Retrieve the text content of an agent's file (supports PDF, DOCX, and text files)



## OpenAPI

````yaml GET /agent/file/{file_id}
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agent/file/{file_id}:
    get:
      summary: Get File Content
      description: >-
        Retrieve the text content of an agent's file (supports PDF, DOCX, and
        text files)
      parameters:
        - name: file_id
          in: path
          description: The ID of the file to retrieve
          required: true
          schema:
            type: string
      responses:
        '200':
          description: File content retrieved successfully
          content:
            text/plain:
              schema:
                type: string
                description: Plain text content of the file
        '400':
          description: Bad Request - Unsupported file type
        '401':
          description: Unauthorized - Invalid or missing API key
        '404':
          description: File not found
        '500':
          description: Internal Server Error - Error processing file
      security:
        - CompanyApiKey: []
components:
  securitySchemes:
    CompanyApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Company API Key

````