Skip to main content
POST

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

application/json

What to export. type decides which other fields are needed; a request that lacks one is refused with 400.

type
enum<string>
required

burned_in_video: the original video with the subtitles of language burned in (needs language). dubbed_video: the video with the dubbing of dubbingLanguage, optionally with subtitleLanguage burned in. dubbed_videos: one dubbed video per entry of languages, up to 5. dubbed_audio: the mixed dubbed audio of dubbingLanguage. dubbed_audio_stems: the dubbed speech and the background as separate files. dubbed_audio_by_speaker: one dubbed audio file per speaker. source_audio: the audio of the original recording. bilingual_docx: a Word document with the source text next to its translation (needs language, the translation language; includeTimecode adds a time column). It is made on the spot, so it answers 200 with its link.

Available options:
burned_in_video,
dubbed_video,
dubbed_videos,
dubbed_audio,
dubbed_audio_stems,
dubbed_audio_by_speaker,
source_audio,
bilingual_docx
language
string

Subtitle language: the language to burn in for burned_in_video, the translation language for bilingual_docx.

source
boolean

Use the source-language subtitles (the transcript) instead of the translation.

dubbing
boolean

Use the subtitles of the dubbing track instead of the translation. For burned_in_video.

dubbingLanguage
string

Language of the dubbing. For dubbed_video, dubbed_audio, dubbed_audio_stems and dubbed_audio_by_speaker.

subtitleLanguage
string

Subtitle language to burn into a dubbed video. Optional.

languages
string[]

Dubbing languages. For dubbed_videos.

Maximum array length: 5
includeTimecode
boolean

Add a time column to the document. For bilingual_docx.

Response

The file is ready at once

An export of a recording: either ready, with its download link, or running, with the url to poll.

status
enum<string>
required

pending: queued. in_progress: being rendered. done: ready, see downloadUrl. failed: stopped, see errorMessage.

Available options:
pending,
in_progress,
done,
failed
exportId
string

Identifies a running export. Absent when the export was ready at once.

type
string

The type that was requested. Present in the answer to the request.

progress
integer

Percent done, when known.

downloadUrl
string<uri>

Signed link to the file, valid for three hours. Only when status is done.

statusUrl
string

Path to poll with GET and the same credentials until status is done or failed.

errorMessage
string

Why the export failed. Only when status is failed.