Documents API¶
Base path: /api/documents
Upload Document¶
POST /api/documents/upload
Authorization: Bearer <token>
Content-Type: multipart/form-data
file=@document.pdf
Supported formats: .pdf, .txt, .md, .docx, .csv
Response
List Documents¶
Ask a Question¶
POST /api/documents/{id}/ask
Authorization: Bearer <token>
Content-Type: application/json
{ "question": "What is the main topic?" }