Skip to main content
POST
Upload a subtitle file

Authorizations

X-API-Key
string
header
required

Your Phrase Platform API token in the X-API-Key header. A missing, invalid or expired token is answered with 401. 403 means the token is valid but the action is not allowed for it.

Path Parameters

projectId
string<uuid>
required

Project ID.

recordingId
string<uuid>
required

Recording ID.

Body

multipart/form-data

A subtitle file for one track.

file
file
required

The file: .srt or .vtt, at most 10 MB.

language
string
required

Language of the track the file is for.

Example:

"es-es"

source
boolean
default:false

true to replace the source transcript.

dubbing
boolean
default:false

true to replace the dubbing track of the language.

cueSettings
enum<string>
default:keep

What to do with the position settings of a .vtt cue (line, position, size, align, vertical, region): keep them or drop them.

Available options:
keep,
discard

Response

The subtitles were saved

imported
integer
required

Number of subtitles that were saved.

warnings
object[]
required

Cues that were skipped, for example a cue that ends before it starts, has no duration, has no text or is shorter than 0.3 seconds.