{
"code": 200,
"data": {
"callbackType": "complete",
"data": [
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/c43e125bbbdcafc1d387f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015940224,
"duration": 41.12,
"id": "1150f859-c087-408b-9866-b07863e75ce7",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/4ba7f3ce592ddbce92b41/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands awake\nAnd I'm ready for the day\n\n[Chorus]\nGood morning, sunshine, here we go\nOne bright step and the whole world glows\nA little warmth, a little cheer\nThe best part of the morning's here\n\n[Outro]\nGood morning, coffee, cheers to today!",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/2f034639e8ad0540457c3/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Sunshine"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/cecb105a41a06b6f8ce3e/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015940224,
"duration": 41.12,
"id": "7190052a-d671-4f70-a949-b26c4873c561",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/e2de1e355b9b2956604d3/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands awake\nAnd I'm ready for the day\n\n[Chorus]\nGood morning, sunshine, here we go\nOne bright step and the whole world glows\nA little warmth, a little cheer\nThe best part of the morning's here\n\n[Outro]\nGood morning, coffee, cheers to today!",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/2457e4995b7820a787e56/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Sunshine"
}
],
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}Replace music section
Replace music section: 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/c43e125bbbdcafc1d387f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015940224,
"duration": 41.12,
"id": "1150f859-c087-408b-9866-b07863e75ce7",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/4ba7f3ce592ddbce92b41/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands awake\nAnd I'm ready for the day\n\n[Chorus]\nGood morning, sunshine, here we go\nOne bright step and the whole world glows\nA little warmth, a little cheer\nThe best part of the morning's here\n\n[Outro]\nGood morning, coffee, cheers to today!",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/2f034639e8ad0540457c3/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Sunshine"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/cecb105a41a06b6f8ce3e/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015940224,
"duration": 41.12,
"id": "7190052a-d671-4f70-a949-b26c4873c561",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/e2de1e355b9b2956604d3/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "[Verse]\nKettle starts its little song\nFirst light slips across the floor\nCoffee warms my hands awake\nAnd I'm ready for the day\n\n[Chorus]\nGood morning, sunshine, here we go\nOne bright step and the whole world glows\nA little warmth, a little cheer\nThe best part of the morning's here\n\n[Outro]\nGood morning, coffee, cheers to today!",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/2457e4995b7820a787e56/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Sunshine"
}
],
"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.

