メインコンテンツまでスキップ

Upload Audio File

This endpoint uploads a WAV audio file to cloud storage, with the option to include a configuration file (e.g., .txt or .json). The endpoint validates the file types and size, checks required request headers, and ensures that the upload date is not in the future. If a configuration file is provided, it is validated; if invalid, the default configuration is used instead. The uploaded file and configuration (if valid) are sent to cloud storage (Azure or Google, based on configuration).

Permissions

Permission TypePermissions
Delegated/Authenticated AccountA valid Bearer token

HTTP Request

Use Beluga Box Upload API base URL

POST /api/blob/upload

Request Headers

HeaderValue
AuthorizationBearer {token}
Content-Typemultipart/form-data
UserNameRequired. Operator username for the uploaded file.
UploaderUserNameRequired. Uploader username for the uploaded file.
CustomerIdOptional. Customer ID metadata for the uploaded file.
CustomerNameOptional. Customer Name metadata for the uploaded file.
KeyValueOptional. Key Value metadata for the uploaded file.
SourceOptional. Source for the uploaded file (UPLOAD).
IsReplaceDefaultConfigOptional. Option for replace default config file from uploaded configFile.
URLOptional. URL for SSO

Request Body

ParameterData TypeDescription
filefileRequired. The WAV audio file to upload.
configFilefileOptional. The JSON file to upload's configuration file..

Response

On a successful request, the API returns an HTTP 202 Accepted status with a JSON object containing a submission response.

HTTP/1.1 202 Accepted
Content-Type: application/json

{
"status": "success",
"reason": "",
"message": "",
"submissionObject": "",
"token": ""
}