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

# Upload Text

> Upload a text file as a new knowledge base

Upload text files along with optional metadata like name and description.

### Headers

<ParamField header="authorization" type="string" required>
  Your API key for authentication.
</ParamField>

### Body

<ParamField body="file" type="file" required>
  The text file to be uploaded. Must be a .pdf, .txt, .doc, or .docx file.
</ParamField>

<ParamField body="name" type="string">
  Name for the uploaded text file
</ParamField>

<ParamField body="description" type="string">
  Description for the uploaded text file
</ParamField>

***

Docs for agents: [llms.txt](/llms.txt)
