Upload Pipeline File
Uploads a file for use in a knowledge pipeline. Use the returned id as the reference of a local_file item in Run Pipeline.
Authorizations
Every request authenticates with an API key: Authorization: Bearer {API_KEY}. App endpoints take an app API key; knowledge endpoints take a knowledge base API key (Get Started).
Keep keys server-side; never embed them in client code. Requests with a missing or invalid key fail with HTTP 401 (unauthorized).
Body
The file to upload, as one multipart/form-data part. Document files are capped at 15 MB by default.
Adjust the limit with the UPLOAD_FILE_SIZE_LIMIT environment variable.
Images, audio, and video follow their own limits: 10 MB, 50 MB, and 100 MB by default.
Response
File uploaded successfully.