> ## 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", "validateInfo", "status": "wait_validating"}}`，在验证短语生成后发送，`data.taskId` 为任务 ID（音色 ID），`validateInfo` 为验证短语，此时请录音并提交创建音色；失败时 `code` 为失败代码（非 `200`），`msg` 为原因，`data` 为 `{"taskId", "status": "processing_validate_fail", "errorCode", "errorMessage"}`。用 `X-DreamTo-Signature` 校验来源，返回任意 `2xx` 表示已收到。



## OpenAPI

````yaml /openapi/zh/suno-voice-validate.json webhook sunoTaskCompleted
openapi: 3.1.0
info:
  description: 自定义音色第一步：提交一段人声录音及其片段，生成一句需要本人朗读的验证短语。
  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.