Skip to main content
POST
/
base
/
{baseId}
/
chat
/
text-extract
cURL
curl --request POST \
  --url https://app.teable.ai/api/base/%7BbaseId%7D/chat/text-extract \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"attachments":[{"token":"string","name":"string","mimetype":"string","size":0,"path":"string","presignedUrl":"string"}]}'
{
  "success": true,
  "extractedFiles": [
    {
      "token": "<string>",
      "content": "<string>",
      "charCount": 123,
      "truncated": true,
      "name": "<string>",
      "isPreview": true
    }
  ],
  "totalCharacters": 123,
  "truncatedFiles": 123,
  "message": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

baseId
string
required

Body

application/json
attachments
object[]
required

Attachments to extract text from

Minimum array length: 1

Response

200 - application/json

Extracted text content

success
boolean
required
extractedFiles
object[]
totalCharacters
number
truncatedFiles
number
message
string
error
string
Last modified on March 5, 2026