Complete a multipart upload
Endpoints
Complete a multipart upload
Complete a multipart upload after all parts have been uploaded to S3.
After uploading all parts using the presigned URLs from the initiate endpoint, call this endpoint with the ID, key, and all part ETags to finalize the upload.
The input should contain:
id: the ID from the multipart upload initiation (previously called uploadId)key: the S3 key from the multipart upload initiationparts: array of objects with partNumber and eTag for each uploaded part
POST
Complete a multipart upload
Complete a multipart upload after all parts have been uploaded to S3. This is the final step in the multipart upload workflow.
After uploading all parts using the presigned URLs from the initiate endpoint,
call this endpoint with the ID, key, and all part ETags to finalize the
upload.
How It Works
Request Parameters
Request Body
The request body must contain a JSON object with the following properties:| Property | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The ID from the multipart upload initiation (previously called uploadId) |
| key | string | Yes | The S3 key from the multipart upload initiation |
| parts | array | Yes | Array of objects with partNumber and eTag for each uploaded part |
Parts Array Structure
Each object in theparts array should contain:
| Property | Type | Required | Description |
|---|---|---|---|
| partNumber | number | Yes | Sequential part number (1, 2, 3, …) |
| eTag | string | Yes | ETag value from the part upload response |
Complete Workflow Example
- Initiate Upload: Call
/prod/v1/files/upload/multipartto get presigned URLs - Upload Parts: Use PUT requests to upload each part to its presigned URL
- Complete Upload: Call this endpoint with all part ETags to finalize
After completion, the file will be automatically processed according to the
parameters specified during initiation (OCR model, schema locking, etc.).
Authorizations
API key for authentication
Body
application/json
ID from the multipart upload initiation
Example:
"upload_abc123xyz"
S3 key from the multipart upload initiation
Example:
"org_123/workspace_456/device/file_abc/document.pdf"
Array of completed parts with part numbers and ETags
Example:
[
{ "partNumber": 1, "eTag": "\"etag1\"" },
{ "partNumber": 2, "eTag": "\"etag2\"" }
]Response
Multipart upload completed successfully