Upload file
Uploads a new file.
Headers
Authorization
RequiredBearer <SONIOX_API_KEY>Request
multipart/form-data
Requiredclient_reference_id
stringOptional tracking identifier string. Does not need to be unique.
Maximum length:
256
file
RequiredfileThe file to upload. Original file name will be used unless a custom filename is provided.
Format:
"binary"
Response
201
Uploaded file.
id
RequiredstringUnique identifier of the file.
Format:
"uuid"
filename
RequiredstringName of the file.
size
RequiredintegerSize of the file in bytes.
created_at
RequiredstringUTC timestamp indicating when the file was uploaded.
Format:
"date-time"
client_reference_id
stringTracking identifier string.
Errors
Uploaded file.