Upload a file or provide a URL to ingest content. When uploading a file, send the request as multipart/form-data with the file in the file field and source metadata in the source field as a JSON string.
Supported file types: PDF, DOCX, DOC, PPTX, PPT, XLSX, XLS, TXT, CSV, PNG, JPEG.
Supported source types (in the source JSON):
file – upload a document or image via the file field.youtube – provide a YouTube video URL in the source JSON url field.webpage – provide a webpage URL in the source JSON url field.Business API key issued per organization.
JSON string with source metadata. Must include sourceType (one of file, youtube, webpage). Include url when sourceType is youtube or webpage. Optionally include metadata (object).
"{\"sourceType\":\"file\"}"
The file to ingest. Accepted formats: PDF, DOCX, DOC, PPTX, PPT, XLSX, XLS, TXT, CSV, PNG, JPEG/JPG. Required when sourceType is file.
Source ingested successfully.