{
"code": 200,
"data": {
"callbackType": "complete",
"data": [
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/40c33c4e48418853e7a21/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015687314,
"duration": 42,
"id": "7abb3b02-093a-46d8-bd8f-a081b6b130a5",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/6085d49995f29f519f70c/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/e78d8a1cb0581ab4d208d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "acoustic, folk, warm guitar",
"title": "Morning Coffee Backing"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/f1cd57d584a65e040ae6d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015687314,
"duration": 39.76,
"id": "19a4c05b-eed2-40b3-982d-45bc7ea4939e",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/1f0fc2778a6ed142659c7/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/d4a971721ff508bed96d8/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "acoustic, folk, warm guitar",
"title": "Morning Coffee Backing"
}
],
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}
Add instrumental
Add instrumental: 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/40c33c4e48418853e7a21/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015687314,
"duration": 42,
"id": "7abb3b02-093a-46d8-bd8f-a081b6b130a5",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/6085d49995f29f519f70c/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/e78d8a1cb0581ab4d208d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "acoustic, folk, warm guitar",
"title": "Morning Coffee Backing"
},
{
"audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/f1cd57d584a65e040ae6d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"createTime": 1795015687314,
"duration": 39.76,
"id": "19a4c05b-eed2-40b3-982d-45bc7ea4939e",
"image_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/1f0fc2778a6ed142659c7/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"model_name": "chirp-hawk",
"prompt": "",
"stream_audio_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/d4a971721ff508bed96d8/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"tags": "acoustic, folk, warm guitar",
"title": "Morning Coffee Backing"
}
],
"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.

