Skip to main content
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>' \
  --form file='@example-file'

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 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

Docs for agents: llms.txt