---
title: "getFileText"
method: GET
path: "/v1/files/{id}/text"
tags: ["File"]
---

# getFileText

`GET /v1/files/{id}/text`

Get the plain-text representation of a file entity. Returns status `not_ready` while text is being prepared and `unsupported` when text is unavailable for the file or organization.

## Path parameters

- `id` union, required
  - string — Empty string (used when file ID not yet assigned)
  - string, uuid — Valid UUID v4

## Response `200`

Text state for the file entity

- union
  - object
    - `status` 'ready', required — Availability of the plain-text representation for a file entity.
    - `text` string, required — Plain-text representation, trimmed and truncated to a server-side limit of 50000 characters.
    - `truncated` boolean, required — True when the returned text was cut off by the character limit.
    - `total_chars` integer, required — Length of the full text before truncation.
  - object
    - `status` 'not_ready', required — Availability of the plain-text representation for a file entity.
    - `text` string
    - `truncated` boolean
    - `total_chars` integer
  - object
    - `status` 'unsupported', required — Availability of the plain-text representation for a file entity.
    - `text` string
    - `truncated` boolean
    - `total_chars` integer

## Other responses

- `400` — Invalid request parameters or payload
- `401` — Authentication required or invalid credentials
- `403` — Insufficient permissions to access the resource
- `404` — The requested resource was not found
- `500` — An unexpected error occurred on the server

---

[API](https://skmtc.net/epilot/apis/file-api.md) · [All operations](https://skmtc.net/epilot/apis/file-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/epilot/file-api/revisions/4d61b97f1e97/schema)
