Get Upload Audio

POST

https://api.sunosay.com/suno/music/get-upload-audio

Get the uploaded audio information


Request Header

Header NametypeRequiredDescription
Authorizationstringtruerequest verification authorization

Request Parameters

Params NametypeRequiredDescription
upload_task_idstringtrueThe upload audio api returns the upload_task_id

Sample Parameters

{
  "upload_task_id": "4976bdbf8-b5c9-4eda-b5131-40f0e8fc875e"
}

Response Body

Response NametypeDescription
codenumberTask creation code 200 means success other status values ​​mean failure
statusstringStatus code, click to view 'status code'
titlestringaudio title
image_urlstringaudio image
continue_clip_id stringstringThe id of the uploaded audio. You can use this to call the API with the parameter continue_clip_id
messagestringCreation 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);
  });