callBackUrl, the system sends a POST request to your callback URL when the task completes.
Callback Mechanism Overview
The callback contains the generated
voiceId when custom voice creation succeeds.Callback Timing
- Custom voice created successfully
- Voice verification or creation failed
- Error occurred during task processing
Callback Method
- HTTP Method: POST
- Content Type: application/json
- Timeout: 15 seconds
Callback Request Format
Field Description
integer
required
Callback status code.
200 indicates success; non-200 values indicate task failure or processing error.string
required
Status message describing the callback result.
string
required
Task ID returned by the custom voice generation API.
string
Generated custom voice ID. Returned when
status is success.string
required
Task status. Common callback statuses are
success, processing_validate_fail, and fail.integer
Error code returned when the task fails.
string
Detailed error message returned when the task fails.
Receiving Callbacks
Node.js
Related Endpoint
Get Custom Voice Record
Query the same voice generation task manually with taskId
