Knowledge Bases
Upload File
Creates a new knowledge base by uploading a file.
POST
Upload a file to create a knowledge base that can be used to provide contextual information to your AI agents. Supported file formats include PDF, Word documents, text files, and more.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.
Headers
Your API key for authentication.
Must be
multipart/form-data for file uploads.Body Parameters (multipart/form-data)
Must be
"file" for file uploads.KB name (defaults to filename if not provided).
Optional description of the knowledge base content.
The file to upload and process into a knowledge base.
Response
The created knowledge base object.
Unique identifier for the knowledge base.
Name of the knowledge base.
Description of the knowledge base (if provided).
Current status:
"PROCESSING", "COMPLETED", "FAILED", or "DELETED".Will be
"FILE" for file-based knowledge bases.ISO timestamp of creation.
ISO timestamp of last update.
Error message if status is
"FAILED".Will be
null on successful creation.Docs for agents: llms.txt