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

# Read File

> Returns the text content of a specific file in the bot's directory.

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the bot.
</ParamField>

## Query Parameters

<ParamField query="path" type="string" required>
  Relative path to the file inside the bot's directory. Example: `index.js` or `src/commands/ping.js`.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.phanomcloud.online/bots/3fa85f64-5717-4562-b3fc-2c963f66afa6/files/content?path=index.js" \
    -H "Authorization: Bearer sess_..."
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "path": "index.js",
      "content": "const { Client } = require('discord.js');\nconst client = new Client();\n...",
      "size_bytes": 1024
    }
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": "File not found: index.js"
  }
  ```
</ResponseExample>
