Get Upload Audio
POST
https://api.sunosay.com/suno/music/get-upload-audio
Get the uploaded audio information
Request Header
Header Name | type | Required | Description |
---|---|---|---|
Authorization | string | true | request verification authorization |
Request Parameters
Params Name | type | Required | Description |
---|---|---|---|
upload_task_id | string | true | The upload audio api returns the upload_task_id |
Sample Parameters
{
"upload_task_id": "4976bdbf8-b5c9-4eda-b5131-40f0e8fc875e"
}
Response Body
Response Name | type | Description |
---|---|---|
code | number | Task creation code 200 means success other status values mean failure |
status | string | Status code, click to view 'status code' |
title | string | audio title |
image_url | string | audio image |
continue_clip_id string | string | The id of the uploaded audio. You can use this to call the API with the parameter continue_clip_id |
message | string | Creation failure reason (Return only if failed) |
Sample Response
{
"code": 200,
"status": "complete",
"title": "xxxxxxtitlxxxtitle",
"image_url": "https://cdn2.suno.ai/image_b7aa5907-4976bdbf8-b5c9-4eda-b5131-40f0e8fc875e.jpeg",
"continue_clip_id": "4976bdbf8-b5c9-4eda-b5131-40f0e8fc875e",
"message": "Key verification failed, please check whether the key is correct"
}
Examples Code
node
var axios = require('axios');
var data = '<body data here>';
var config = {
method: 'post',
url: 'https://api.sunosay.com/suno/music/music/get-upload-audio',
headers: {
Authorization: 'Bearer your-api-key',
},
data: {
upload_task_id: 'df679dae-439a-4d72-955f-640e6323f4a2',
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});