---
title: "Create a knowledge base document from plain text"
method: POST
path: "/companies/{company}/knowledge-base/documents/text"
tags: ["Knowledge Base"]
---

# Create a knowledge base document from plain text

`POST /companies/{company}/knowledge-base/documents/text`

## Path parameters

- `company` integer, required

## Request body

- object
  - `text` string, required — Document text content
  - `name` string, required — Display name for the document
  - `identifierKey` string, nullable — Optional stable identifier (e.g. FAQ, Customer_Questions). Useful when the client is filling in a section the business analysis could not extract.
  - `businessUnitId` integer, nullable

## Response `201`

Document created

- AppHttpResourcesApiKnowledgeBaseDocumentResource — unresolved $ref

---

[API](https://skmtc.dev/800/apis/public-api.md) · [All operations](https://skmtc.dev/800/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/800/public-api/revisions/aab9efc97342/schema)
