cURL
curl --request POST \ --url https://api.example.com/knowledge-bases/{kb_id}/documents
Upload a document to a knowledge base
kb_id
string
Content-Type: multipart/form-data
file
{ "id": "doc_456", "filename": "product-guide.pdf", "chunk_count": 28, "status": "processed" }