This endpoint can be used for validating and fixing vtt files. Posting an invalid vtt file will return an error. Posting a valid vtt file will return 200 response. The tool automatically fixes common mistakes in the uploaded vtt file.
Field | Type | Required | Description |
---|---|---|---|
subtitle | File | Required | The input file that should be converted to vtt |
{
errors: null,
download_url: "https://subtitletools.com/api/v1/download/6436c844e3"
}
Or, when a validation error occurs:
{
errors: [
"The subtitle field is required."
],
download_url: null
}