{
"code": 200,
"data": {
"callbackType": "complete",
"data": [
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/c335fac2fdf1e6f2f06da/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015717013,
"duration": 43.96,
"id": "d6f3f7e1-081d-4a5f-a172-e2e14769fb45",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ab3eeee00828fa2896f71/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse 1]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands away\nAnd I'm ready for the day\n\n[Chorus]\nGood morning coffee, here we go\nOne sweet sip and the whole world slows\nA little warmth, a little cheer\nThe best part of the morning's here\nGood morning coffee, cheers to today\n\n[Verse]\nSteam curls up from the morning cup\n[Chorus]\nGood morning, coffee, wake me up",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/c50f26b11a40c60660834/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "Cheerful acoustic folk-pop",
"title": "Good Morning, Coffee Extended"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/92e5b58537e5a481efea4/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015717013,
"duration": 40.84,
"id": "48c10886-0ed2-43ba-82e8-352fbd73c56d",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/6b34b825bee4b7bd58c8e/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse 1]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands away\nAnd I'm ready for the day\n\n[Chorus]\nGood morning coffee, here we go\nOne sweet sip and the whole world slows\nA little warmth, a little cheer\nThe best part of the morning's here\nGood morning coffee, cheers to today\n\n[Verse]\nSteam curls up from the morning cup\n[Chorus]\nGood morning, coffee, wake me up",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/174701a887e884f0d3e24/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "Cheerful acoustic folk-pop",
"title": "Good Morning, Coffee Extended"
}
],
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}Upload and extend audio
Upload and extend audio: Task callback
When the task was created with callBackUrl, DreamTo sends this POST there once the task succeeds or fails (once, with data.callbackType always complete). On success code is 200 and data.data is the result; on failure code is the failure code and msg the reason. Verify the sender with X-DreamTo-Signature and answer with any 2xx.
WEBHOOK
sunoTaskCompleted
{
"code": 200,
"data": {
"callbackType": "complete",
"data": [
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/c335fac2fdf1e6f2f06da/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015717013,
"duration": 43.96,
"id": "d6f3f7e1-081d-4a5f-a172-e2e14769fb45",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ab3eeee00828fa2896f71/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse 1]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands away\nAnd I'm ready for the day\n\n[Chorus]\nGood morning coffee, here we go\nOne sweet sip and the whole world slows\nA little warmth, a little cheer\nThe best part of the morning's here\nGood morning coffee, cheers to today\n\n[Verse]\nSteam curls up from the morning cup\n[Chorus]\nGood morning, coffee, wake me up",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/c50f26b11a40c60660834/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "Cheerful acoustic folk-pop",
"title": "Good Morning, Coffee Extended"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/92e5b58537e5a481efea4/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015717013,
"duration": 40.84,
"id": "48c10886-0ed2-43ba-82e8-352fbd73c56d",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/6b34b825bee4b7bd58c8e/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse 1]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands away\nAnd I'm ready for the day\n\n[Chorus]\nGood morning coffee, here we go\nOne sweet sip and the whole world slows\nA little warmth, a little cheer\nThe best part of the morning's here\nGood morning coffee, cheers to today\n\n[Verse]\nSteam curls up from the morning cup\n[Chorus]\nGood morning, coffee, wake me up",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/174701a887e884f0d3e24/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "Cheerful acoustic folk-pop",
"title": "Good Morning, Coffee Extended"
}
],
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}Authorizations
Headers
Body
application/json
Response
200
Any 2xx status acknowledges the callback; on a timeout (10 seconds) or another status it is retried after 1, 5 and 30 minutes, at most 4 deliveries.

