Complete File Multipart Upload
Changed onAssembles the parts of a multipart upload after every part has been PUT to its presigned URL. Pass the multipart_upload_id from Create File and each part's ETag response header. For a step-by-step walkthrough of multipart uploads, see the direct file uploads guide.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The unique identifier of the file, prefixed file_.
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Every uploaded part, in order.
The ID of the multipart upload, returned by Create File.
Example request
{
"multipart_parts": [
{
"etag": "etag-1",
"part_number": 1
}
],
"multipart_upload_id": "upload-id"
}Response
multipart upload completed
BlurHash placeholder for an image or video. Null when unavailable or removed by moderation.
The original file's MIME type, for example application/pdf. It is kept when moderation removes the file.
When the file was created, as an ISO 8601 timestamp.
Audio or video duration in seconds. Null when unavailable or removed by moderation.
The original filename, including its extension.
Image or video height in pixels. Null when unavailable or removed by moderation.
The file's ID, prefixed file_.
The byte size each part (except the last) must be. Present only on create, and only for multipart uploads.
The ID of the multipart upload, passed back to complete. Present only on create, and only for multipart uploads.
The type of this object, always file.
URL to the optimized file. null when no optimized version is available.
Whether moderation removed the file. When true, url serves a replacement image. filename, size and content_type still describe the original file.
The file size in bytes. null until the upload has finished.
Headers to send with the upload PUT. Present only on create.
Where the file is in its upload lifecycle.
Presigned URL to PUT the file's bytes to. Present only on create, and only for single-part uploads.
A URL to download the file. Public files get a permanent CDN URL, and private files get a signed URL that expires. null until the upload has finished. When moderation removes the file, a replacement image URL.
public files are served from an unsigned CDN URL. private files are served from a signed URL that expires.
Audio waveform URL. Null when unavailable or removed by moderation.
Image or video width in pixels. Null when unavailable or removed by moderation.
Example response
{
"content_type": "application/pdf",
"created_at": "2026-01-01T12:00:00.000Z",
"filename": "evidence.pdf",
"id": "file_xxxxxxxxxxxxxx",
"multipart_chunk_size": 5242880,
"multipart_upload_id": "upload-id",
"multipart_upload_urls": [
{
"part_number": 1,
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf"
}
],
"object": "file",
"size": 9670,
"upload_headers": {},
"upload_status": "pending",
"upload_url": "https://whop-assets-example.s3.amazonaws.com/uploads/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/application.pdf",
"url": "https://whop-assets-example.s3.amazonaws.com/uploads/audio/2026-01-01/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"visibility": "private"
}Changes
- info
added the required property
optimized_urlto the response with the status
- info
- info
added the required property
blurhashto the response with the status - info
added the required property
duration_secondsto the response with the status
4 more changes in this revision
- info