curl --request POST \
--url https://platform-us.plaud.ai/developer/api/open/partner/files/upload/complete-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"file_id": "file_xxx",
"upload_id": "upload_xxx",
"part_list": [
{
"PartNumber": 1,
"ETag": "\"abc123...\""
},
{
"PartNumber": 2,
"ETag": "\"def456...\""
}
],
"filetype": "mp3",
"file_md5": "9e107d9d372bb6826bd81d3542a419d6"
}
'import requests
url = "https://platform-us.plaud.ai/developer/api/open/partner/files/upload/complete-upload"
payload = {
"file_id": "file_xxx",
"upload_id": "upload_xxx",
"part_list": [
{
"PartNumber": 1,
"ETag": "\"abc123...\""
},
{
"PartNumber": 2,
"ETag": "\"def456...\""
}
],
"filetype": "mp3",
"file_md5": "9e107d9d372bb6826bd81d3542a419d6"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"FileId": "file_xxx",
"FileType": "mp3",
"DownloadUrl": "https://plaud-bucket.s3.amazonaws.com/...",
"FileMd5": "9e107d9d372bb6826bd81d3542a419d6"
}Complete Multipart Upload
Merge the uploaded parts into a single file.
Submit the file_id and upload_id from generate-presigned-urls along with the ETag collected from each part’s PUT response.
DownloadUrl is valid for 24 hours.curl --request POST \
--url https://platform-us.plaud.ai/developer/api/open/partner/files/upload/complete-upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--data '
{
"file_id": "file_xxx",
"upload_id": "upload_xxx",
"part_list": [
{
"PartNumber": 1,
"ETag": "\"abc123...\""
},
{
"PartNumber": 2,
"ETag": "\"def456...\""
}
],
"filetype": "mp3",
"file_md5": "9e107d9d372bb6826bd81d3542a419d6"
}
'import requests
url = "https://platform-us.plaud.ai/developer/api/open/partner/files/upload/complete-upload"
payload = {
"file_id": "file_xxx",
"upload_id": "upload_xxx",
"part_list": [
{
"PartNumber": 1,
"ETag": "\"abc123...\""
},
{
"PartNumber": 2,
"ETag": "\"def456...\""
}
],
"filetype": "mp3",
"file_md5": "9e107d9d372bb6826bd81d3542a419d6"
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"FileId": "file_xxx",
"FileType": "mp3",
"DownloadUrl": "https://plaud-bucket.s3.amazonaws.com/...",
"FileMd5": "9e107d9d372bb6826bd81d3542a419d6"
}Authorizations
Bearer authentication using a user_access_token (see the Authentication API).
Headers
Body
The FileId returned by generate-presigned-urls.
"file_xxx"
The UploadId returned by generate-presigned-urls.
"upload_xxx"
The part number and ETag collected from each chunk's PUT response.
Show child attributes
Show child attributes
File extension of the audio file.
"mp3"
Hex-encoded MD5 of the full file, used to verify integrity. Optional.
"9e107d9d372bb6826bd81d3542a419d6"
Response
Upload completed and parts merged
Identifier for the uploaded file.
"file_xxx"
File extension of the audio file.
"mp3"
Pre-signed download URL for the merged file, valid ~24h. Pass as file_url to the Transcription API.
"https://plaud-bucket.s3.amazonaws.com/..."
Hex-encoded MD5 of the merged file.
"9e107d9d372bb6826bd81d3542a419d6"
Was this page helpful?