{
"code": 200,
"msg": "success",
"data": {
"taskId": "c2a81e5f09d34b7e8f61a2d4c9b03e75",
"status": "success",
"errorCode": null,
"errorMessage": ""
}
}Create custom voice: 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": "success", "data": {"taskId", "status": "success", "errorCode": null, "errorMessage": ""}}, with data.taskId the Voice ID (the validation-phrase task’s task_id); on failure code and data.errorCode are the failure code (not 200), msg and data.errorMessage the reason, and data.status is fail, with data.taskId again the Voice ID. The signature uses this (create-voice) task’s taskId, i.e. data.taskId of the create response, not the Voice ID in the callback body. This callback only reports that the create request was accepted or failed; whether the voice is finally ready is shown by the validation-phrase task’s state or its callback. Verify the sender with X-DreamTo-Signature and answer with any 2xx.
{
"code": 200,
"msg": "success",
"data": {
"taskId": "c2a81e5f09d34b7e8f61a2d4c9b03e75",
"status": "success",
"errorCode": null,
"errorMessage": ""
}
}Authorizations
Headers
Body
Response
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.

