curl -X POST https://app.dubformer.ai/api/v1/projects/{project_id}/validate-translation-request \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "target_script": [ { "start_ms": 100, "end_ms": 1544, "text": "Au revoir le monde!", "speaker_id": 1 } ], "target_speakers": [ { "speaker_id": 1, "voice_key": "53f154:fr-FR-DeniseNeural", "style": "feminine" } ] }'
{ "valid": true }
Validate re-translation request without creating it
true
{ "error": "ValidationError", "message": "Unknown voice unknown-voice" }
{ "error": "ValidationError", "message": "Speaker ID 2 referenced in script but not found in target_speakers" }
{ "error": "ValidationError", "message": "Invalid timing: start_ms must be less than end_ms" }