---
title: "GET /api/files/document"
method: GET
path: "/api/files/document"
tags: ["Ai.Tlbx.MidTerm.OpenApi"]
---

# GET /api/files/document

`GET /api/files/document`

## Request

- The document declares no server URL.
- Auth: none declared

## Query parameters

- `path` string, required
- `sessionId` string
- `full` boolean
- `offset` integer

## Response `200`

OK

- FileDocumentResponse
  - `path` string, required
  - `content` string, required
  - `version` string, nullable, required
  - `size` integer, required
  - `encoding` string, required
  - `lineEnding` string, required
  - `isTruncated` boolean, required
  - `canLoadFull` boolean, required
  - `readOnly` boolean, required
  - `offset` integer, required
  - `nextOffset` integer, required
  - `previewBytes` integer, required
  - `editLimitBytes` integer, required

## Other responses

- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity

## Changes

- **2026-10-11** `9c5a77232061`: 5 info
  - added the new optional `query` request parameter `offset`
  - added the required property `editLimitBytes` to the response with the `200` status
  - added the required property `nextOffset` to the response with the `200` status
  - added the required property `offset` to the response with the `200` status
  - …1 more
- **2026-10-11** `f61bb2b3b140`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tlbx-ai/apis/tlbx-api/changes/api/files/document/get.md)

---

[API](https://skmtc.dev/tlbx-ai/apis/tlbx-api.md) - [All operations](https://skmtc.dev/tlbx-ai/apis/tlbx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tlbx-ai/apis/tlbx-api/revisions/3af271140994?raw)
