---
title: "Add Text to Knowledge Base"
api: "POST /v1/api/knowledgebase/{id}/text"
description: "Add plain text content to an existing knowledge base."
---

## Headers
<ParamField header="x-workspace-id" type="string" required>
Workspace identifier for the API.
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
The unique identifier of the knowledge base.
</ParamField>

## Request Body

<ParamField body="text" type="string" required>
The plain text content to add to the knowledge base.
</ParamField>

<ParamField body="name" type="string">
Optional name for the text entry.
</ParamField>

## Response Fields

<ResponseField name="success" type="boolean">
Whether the text was added successfully.
</ResponseField>

<ResponseExample>
```json
{
  "success": true
}
```
</ResponseExample>
