{
"code": 200,
"data": {
"callbackType": "complete",
"data": [
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/3b86de84ce9ab8f7c5f77/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015715545,
"duration": 53.2,
"id": "4b39bd07-5a8a-4e6e-b47b-de6dc581cfdb",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/54cbe9429428b4524800f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": " into the light\n[Chorus]\nGood morning, coffee, hold me tight",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/4fb600e1aa81aef0448d6/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Coffee Extended"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ac4db879427841eeef29a/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015715545,
"duration": 53.08,
"id": "86286054-1b35-4c01-979a-87be5d4b9fb5",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ba5761c94876c32818c5f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": " into the light\n[Chorus]\nGood morning, coffee, hold me tight",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/0ac344ed2237b56ccd082/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Coffee Extended"
}
],
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}Extend music
Extend music: 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/3b86de84ce9ab8f7c5f77/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015715545,
"duration": 53.2,
"id": "4b39bd07-5a8a-4e6e-b47b-de6dc581cfdb",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/54cbe9429428b4524800f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": " into the light\n[Chorus]\nGood morning, coffee, hold me tight",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/4fb600e1aa81aef0448d6/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"title": "Good Morning, Coffee Extended"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ac4db879427841eeef29a/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015715545,
"duration": 53.08,
"id": "86286054-1b35-4c01-979a-87be5d4b9fb5",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/ba5761c94876c32818c5f/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": " into the light\n[Chorus]\nGood morning, coffee, hold me tight",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/0ac344ed2237b56ccd082/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "folk-pop, acoustic",
"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.

