{
"code": 200,
"msg": "All generated successfully.",
"data": {
"audio_wav_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/035e0ea2215335e9eda4b/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
}
}Convert to WAV format
Convert to WAV format: 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": {"audio_wav_url", "task_id"}}, with data.task_id the task ID and audio_wav_url the WAV link (the same as response.resultUrls[0]); on failure code is the failure code (not 200), msg the reason and data.audio_wav_url is null. Verify the sender with X-DreamTo-Signature and answer with any 2xx.
WEBHOOK
sunoTaskCompleted
{
"code": 200,
"msg": "All generated successfully.",
"data": {
"audio_wav_url": "https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/035e0ea2215335e9eda4b/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t",
"task_id": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
}
}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.

