Mixedbread

Complete Multipart Upload

POST/v1/files/uploads/{upload_id}/complete

Authorization

Authorizationstringrequired

Bearer token for API authentication. Format: `Bearer YOUR_API_KEY`

Path Parameters

upload_idstring(uuid)required

The ID of the multipart upload

Request Body

Response Body

idstringrequired

Unique identifier for the file

filenamestringrequired

Name of the file including extension

Constraints

•Minimum length: 1
bytesintegerrequired

Size of the file in bytes

Constraints

•Exclusive minimum: 0
mime_typestringrequired

MIME type of the file

versionintegerrequired

Version of the file

Constraints

•Minimum: 1
created_atstring(date-time)required

Timestamp when the file was created

updated_atstring(date-time)required

Timestamp when the file was last updated

Request
POST/v1/files/uploads/{upload_id}/complete
from mixedbread import Mixedbread

mxbai = Mixedbread(api_key="YOUR_API_KEY")

res = mxbai.files.uploads.complete(
    "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    parts=[
        {"part_number": 1, "etag": '"abc123def456"'},
        {"part_number": 2, "etag": '"789ghi012jkl"'},
    ],
)

print(res)
Response
JSON
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "filename": "large-document.pdf",
  "bytes": 104857600,
  "mime_type": "application/pdf",
  "version": 1,
  "created_at": "2025-01-15T10:00:00.000Z",
  "updated_at": "2025-01-15T10:05:00.000Z",
  "object": "file"
}
Last updated: March 13, 2026