POST
/
v1
/
knowledgebases
/
upload
Upload Text
curl --request POST \
  --url https://api.bland.ai/v1/knowledgebases/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'authorization: <authorization>' \
  --form 'name=<string>' \
  --form 'description=<string>'
Upload text files along with optional metadata like name and description.

Headers

authorization
string
required
Your API key for authentication.

Body

file
file
required
The text file to be uploaded. Must be a .pdf, .txt, .doc, or .docx file.
name
string
Name for the uploaded text file
description
string
Description for the uploaded text file