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