Upload a video, audio, or image file to the MAVI platform
asset_id that can be used to reference this asset in all subsequent API calls.
| Category | Formats |
|---|---|
| Video | MP4, MOV, AVI, WebM, MKV, FLV, WMV, MPEG |
| Audio | MP3, WAV, AAC, FLAC, OGG, M4A |
| Image | JPEG, PNG, GIF, WebP, BMP, TIFF |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | The file to upload (multipart/form-data). See supported formats above. |
| Parameter | Type | Description |
|---|---|---|
| code | string | Response code indicating the result status |
| msg | string | Response message describing the operation result |
| data | object | Response data object containing the uploaded asset information |
| data.asset_id | string | Unique identifier of the uploaded asset. Use this ID in all subsequent API calls. |
| success | boolean | Indicates whether the operation was successful |
| failed | boolean | Indicates whether the operation failed |
SUCCESS status can be used in subsequent API calls.
| Status | Description |
|---|---|
WAITING | Upload request received, waiting to process |
UPLOADING | File is being uploaded and processed |
SUCCESS | Upload completed successfully — asset is ready for use |
FAILED | Upload failed — retry the upload |
upload_status of an asset.
asset_id is required for all subsequent operations (transcription, editing, embedding, etc.)upload_status: "SUCCESS" can be used in subsequent API callsThe file to upload
File uploaded successfully
Response code indicating the result status
200
Response message describing the operation result
"success"
Response data object containing the uploaded asset information
Indicates whether the operation was successful
true
Indicates whether the operation failed
false