Developers / Text to Speech

Delete a finished TTS job and its audio

DELETE https://api.echonova.ai/v1/text-to-speech/jobs/{jobId}

Deletes a completed or failed API job of this key's workspace, with its audio, whichever key created it. A job still in progress answers 400; a job of another workspace answers 404. Needs Text to Speech access on the key.

Headers

Authorization string Required

Bearer, a space, then your API key, which starts with ek_. Create keys in the portal under Developers, API Keys.

Path parameters

jobId string Required

The jobId the API returned when the job was created.

Response

200 application/json Every response uses this envelope.

data object

The result.

success boolean

true for a successful call.

statusCode integer

Repeats the HTTP status.

errorMessage string or null

null on success.

Errors

Same envelope, with success false and data null. All errors

DELETE /v1/text-to-speech/jobs/{jobId}

curl -X DELETE "https://api.echonova.ai/v1/text-to-speech/jobs/{jobId}" \
  -H "Authorization: Bearer YOUR_API_KEY"

{
  "data": {
    "deleted": true
  },
  "success": true,
  "statusCode": 200,
  "errorMessage": null
}