Skip to main content
POST
Ingest a source (file upload, YouTube URL, or webpage URL).

Authorizations

x-api-key
string
header
required

Business API key issued per organization.

Body

multipart/form-data
source
string
required

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).

Example:

"{\"sourceType\":\"file\"}"

file
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.

data
object
required