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

# 创建自定义音色：任务完成回调

> 创建任务时传了 `callBackUrl`，任务成功或失败后 DreamTo 向该地址发送此 `POST` 请求（只发送一次）：成功时为 `{"code": 200, "msg": "success", "data": {"taskId", "status": "success", "errorCode": null, "errorMessage": ""}}`，`data.taskId` 为 Voice ID（验证短语任务的 `task_id`）；失败时 `code` 与 `data.errorCode` 为失败代码（非 `200`），`msg` 与 `data.errorMessage` 为原因，`data.status` 为 `fail`，`data.taskId` 同样为 Voice ID。签名使用本任务（创建音色任务）的 `taskId`，即创建响应中的 `data.taskId`，而不是回调体中的 Voice ID。本回调只表示创建请求已受理或失败；音色最终是否就绪请以验证短语任务的状态或其回调为准。用 `X-DreamTo-Signature` 校验来源，返回任意 `2xx` 表示已收到。



## OpenAPI

````yaml /openapi/zh/suno-voice-create.json webhook sunoTaskCompleted
openapi: 3.1.0
info:
  description: 提交用户朗读验证短语的录音，校验通过后生成可复用的自定义音色（Voice）。
  title: Suno 创建自定义音色
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno 创建自定义音色
paths: {}
components:
  securitySchemes:
    bearerAuth:
      description: 'DreamTo 控制台创建的 API Key，格式 `Authorization: Bearer <API Key>`。'
      scheme: bearer
      type: http

````

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