---
title: "Add Many Text Document"
method: POST
path: "/api/scraping/text-document/{bot_id}/many"
tags: ["Scraping"]
---

# Add Many Text Document

`POST /api/scraping/text-document/{bot_id}/many`

Import multiple text documents for a bot.

## Path parameters

- `bot_id` string, uuid, required

## Request body

- BotManyTextDocumentSchema — Schema for representing multiple text documents.
  - `text_documents` string[], required — List of text documents.

## Response `200`

Successful Response

- BotTextDocumentResponseSchema[]
  - `id` string, uuid, required — Unique identifier for the text document.
  - `bot_id` string, uuid, required — Unique identifier for the associated bot.
  - `content` string, required — Content of the text document.
  - `num_token` integer, required — Number of tokens in the document.
  - `created_at` string, date-time, required — Timestamp indicating when the document was created.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/chat-fly/apis/chatfly-backend-application.md) · [All operations](https://skmtc.net/chat-fly/apis/chatfly-backend-application/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chat-fly/chatfly-backend-application/revisions/cbb37496f138/schema)
