> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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`.



## OpenAPI

````yaml /openapi/en/suno-voice-create.json webhook sunoTaskCompleted
openapi: 3.1.0
info:
  description: >-
    Submit the user's recording of the validation phrase; once verified, a
    reusable custom voice is created.
  title: Suno Create custom voice
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Create custom voice
paths: {}
components:
  securitySchemes:
    bearerAuth:
      description: >-
        API Key created in the DreamTo console, sent as `Authorization: Bearer
        <API Key>`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.