> ## Documentation Index
> Fetch the complete documentation index at: https://trilletai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Text to Knowledge Base

> Add plain text content to an existing knowledge base.

## Headers

<ParamField header="x-api-key" type="string" required>
  API key used for authenticating requests to the API.
</ParamField>

<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 theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
