Skip to main content
POST
/
api
/
files
/
upload-s3
/
complete-upload
Complete Upload
curl --request POST \
  --url https://api.example.com/api/files/upload-s3/complete-upload \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_id": "<string>",
  "upload_id": "<string>",
  "part_list": [
    {}
  ],
  "filetype": "<string>",
  "sn_type": "notepin",
  "sn": "<string>",
  "owner_id": "<string>",
  "filename": "<string>",
  "file_md5": "<string>",
  "start_time": 123,
  "end_time": 123,
  "duration": 123,
  "timezone": 123,
  "zonemins": 123
}
'
{
  "id": "<string>",
  "client_id": "<string>",
  "owner_id": "<string>",
  "name": "<string>",
  "bot_id": "<string>",
  "device_id": "<string>",
  "start_time": 123,
  "end_time": 123,
  "duration": 123,
  "timezone": 123,
  "zonemins": 123,
  "group_id": "<string>",
  "children_ids": [
    "<unknown>"
  ],
  "parent_id": "<string>",
  "parent_clips": [
    "<unknown>"
  ],
  "data": {},
  "presigned_url": "<string>",
  "presigned_url_opus": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Headers

Authorization
string
required

Body

application/json
file_id
string
required

from generate_presigned_urls

upload_id
string
required

from generate_presigned_urls

part_list
Part List · object[]
required

generated by upload progress

filetype
string
required

filetype: opus or mp3

sn_type
enum<string>
default:notepin

Device Type Enum

Available options:
note,
notepin,
notepro,
other
sn
string | null

sn, set this or owner_id

owner_id
string | null

owner id, set this or sn

filename
string | null

name of file

file_md5
string | null

md5 of file

start_time
integer | null

start timestamp in milliseconds

end_time
integer | null

end timestamp in milliseconds

duration
integer | null

duration of recording

timezone
integer | null

timezone of recording

zonemins
integer | null

zonemins of recording

Response

OK

File Model

id
string | null
client_id
string | null
owner_id
string | null
name
string | null
bot_id
string | null
device_id
string | null
start_time
integer | null
end_time
integer | null
duration
integer | null
timezone
integer | null
zonemins
integer | null
group_id
string | null
children_ids
any[] | null
parent_id
string | null
parent_clips
any[] | null
data
presigned_url
string | null
presigned_url_opus
string | null
created_at
string<date-time> | null