---
title: "Get File Text"
method: GET
path: "/api/files/{file_id}/text"
tags: ["files"]
---

# Get File Text

`GET /api/files/{file_id}/text`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/files/{file_id}/text`
- Auth: HTTP bearer

Get extracted text content from a file.

## Path parameters

- `file_id` string, uuid, required

## Response `200`

Successful Response

- FileTextResponse: Response for extracted text content.
  - `file_id` string, uuid, required
  - `filename` string, required
  - `mime_type` string, required
  - `text` string, nullable
  - `size_bytes` integer, required
  - `has_text` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
