---
title: "Upload Text Document"
method: POST
path: "/api/mcp/v1/knowledge/documents/text"
tags: ["Knowledge Base & RAG"]
---

# Upload Text Document

`POST /api/mcp/v1/knowledge/documents/text`

## Request

- Base URL: `https://flowdot.ai/api`
- URL: `https://flowdot.ai/api/api/mcp/v1/knowledge/documents/text`
- Auth: HTTP bearer

Upload text content directly as a document.

## Request body

- object
  - `title` string: Document title
  - `content` string: Text content (max 10MB)
  - `team_id` integer: Team ID
  - `mime_type` 'text/plain' | 'text/markdown' | 'application/json'
  - `category_id` integer: Category ID

## Response `200`

Successful response

- unknown

## Other responses

- `401`: Unauthenticated
- `413`: Content too large
- `422`: Validation error

---

[API](https://skmtc.dev/flowdot/apis/flowdot-api.md) · [All operations](https://skmtc.dev/flowdot/apis/flowdot-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flowdot/apis/flowdot-api/revisions/93f63cc9c775?raw)
