Upload a file (PDF, DOCX, CSV, EPUB, PPTX, TXT) or provide a URL to get a file_id.
The file_id returned from this endpoint is required for all chat operations.
URL Format:
/ingest/v1/api/document — upload any supported document/ingest/v1/api/document/{type} — optionally specify a type suffix (e.g., pdf, docx, xlsx, csv, epub, pptx, txt)Examples:
POST /ingest/v1/api/documentPOST /ingest/v1/api/document/pdfPOST /ingest/v1/api/document/docxPOST /ingest/v1/api/document/xlsxPOST /ingest/v1/api/document/csvPOST /ingest/v1/api/document/epubPOST /ingest/v1/api/document/pptxPOST /ingest/v1/api/document/txtSupported file types:
Required Headers:
Authorization: Bearer YOUR_API_KEYNotes:
platform, userid, useremail for API calls. The backend derives the user from your API key.{type} in the route (e.g., pdf, docx, xlsx, pptx, txt, epub) for document chat endpoints.Example Workflow:
file_idfile_id in appropriate /chat/v1/api/document/:type endpoint to ask questions