OpenAPI 3.1.0raw.githubusercontent.com2026-08-202766453.1 MB

2cd7e7f7bcb4

Knowledge Bases

Retrieve a file upload URL

Creates a presigned upload policy for a file that will be attached to a knowledge-base datasource. Submit the returned form fields and file directly to the returned URL.

get/v2/knowledge/{knowledge_id}/upload-file

Path parameters

knowledge_idstring required

Query parameters

fileNamestring required

The name of the file to upload.

contentTypestring required

The media type of the file to upload.

datasourceIdstring required

The datasource identifier that will own the uploaded file.

Response

File upload url successfully retrieved

objectNamestring required