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

# Add One Text Document

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

Import a single text document for a bot.

## Path parameters

- `bot_id` string, uuid, required

## Request body

- ImportTextDocumentSchema — Schema for importing a text document.
  - `content` string, required — Content of the text document.

## Response `200`

Successful Response

- BotTextDocumentResponseSchema — Schema for representing the response of a bot's text document.
  - `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)
