Skip to main content
The signed storage flow allows you to upload large files (such as videos, zip files, or heavy documents) directly to cloud storage (Amazon S3) securely, without routing the file bytes through the API gateway.

Step 1: Initiate Upload

Call the createSignedStorage endpoint to register the file and obtain a temporary pre-signed S3 upload URL.

Endpoint

POST /v1/process/knowledges/createSignedStorage

Body Parameters

string
required
The unique identifier for the sub-project.
string
required
The target name of the file to create.
string
required
Mime-type of the file being uploaded.
string
required
The target storage plugin.

Response Fields

object
object

Request Example

Response Example


Step 2: Upload File to S3

Perform a standard HTTP multi-part form POST request to the AWS S3 URL returned in Step 1. You must include all key-value pairs from the aws.fields object as form fields, and append the file field last.

Request Example


Step 3: Finalize Upload

After S3 responds with a successful upload status code (204 No Content), call the closeSignedStorage endpoint to verify the file’s presence, unlock it, and retrieve its complete metadata.

Endpoint

POST /v1/process/knowledges/closeSignedStorage

Body Parameters

string
required
The unique identifier for the sub-project.
string
required
The unique ID of the file record to close.

Response Fields

object

Request Example

Response Example


Error Codes