{
"code": 200,
"msg": "All generated successfully.",
"data": {
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"video_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/d2fc44bb9c52a471ad0e6/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
}
}Create music video
Create music video: Task callback
When the task was created with callBackUrl, DreamTo sends this POST there once the task succeeds or fails (once): on success the body is {"code": 200, "msg": "All generated successfully.", "data": {"task_id", "video_url"}}, with data.task_id the task ID and video_url the video link (the same as response.resultUrls[0]); on failure code is the failure code (not 200), msg the reason and data.video_url is null. Verify the sender with X-DreamTo-Signature and answer with any 2xx.
WEBHOOK
sunoTaskCompleted
{
"code": 200,
"msg": "All generated successfully.",
"data": {
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"video_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/d2fc44bb9c52a471ad0e6/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
}
}Authorizations
Headers
Body
application/json
Callback request body.
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.

