Ingest a source (file upload, YouTube URL, or webpage URL).
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 thefilefield.youtube– provide a YouTube video URL in thesourceJSONurlfield.webpage– provide a webpage URL in thesourceJSONurlfield.
Authorizations
Business API key issued per organization.
Body
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.
Response
Source ingested successfully.