---
title: "POST /base/{baseId}/chat/text-extract"
method: POST
path: "/base/{baseId}/chat/text-extract"
tags: ["chat"]
---

# POST /base/{baseId}/chat/text-extract

`POST /base/{baseId}/chat/text-extract`

Extract text content from attachments

## Path parameters

- `baseId` string, required

## Request body

- object
  - `attachments` object[], required — Attachments to extract text from
    - `token` string, required
    - `name` string
    - `mimetype` string, required
    - `size` number
    - `path` string
    - `presignedUrl` string

## Response `200`

Extracted text content

- object
  - `success` boolean, required
  - `extractedFiles` object[]
    - `token` string, required
    - `name` string
    - `content` string, required
    - `charCount` number, required
    - `truncated` boolean, required
    - `isPreview` boolean
  - `totalCharacters` number
  - `truncatedFiles` number
  - `message` string
  - `error` string

---

[API](https://skmtc.net/teable/apis/teable-app.md) · [All operations](https://skmtc.net/teable/apis/teable-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/teable/teable-app/versions/7515f3b33d79/schema)
