Skip to Content
Vatis TechAPI docs
Transcripts

Export a transcript

Downloads a completed transcript as plain text, or as SRT or WebVTT subtitles.

Serverhttps://api.eu.vatis.tech

GET/v1/transcripts/{id}/export

Needs batch transcription

Transcripts are the results of files, so this works once batch is open on your workspace (Batch transcription). A live session keeps no transcript.

Path parameters

id (required)
The transcript: the id of the answer to Create a transcript.
Valuesa transcript id, tr_...

Headers

Authorization (required)
ValuesBearer <api key>

Query parameters

format (required)
Plain text, SRT subtitles, or WebVTT subtitles.
Valuestxt, srt, vtt
timestamps
txt only: each paragraph starts with its time, [01:05], or [1:02:03] past the first hour.
Valuestrue, falseDefaulttrue
speakers
Name the speaker: Speaker 1 for speaker_0, Channel 1 for channel_0. A transcript without speakers has none to name.
Valuestrue, falseDefaulttrue
lines
srt and vtt only: lines per caption.
Values1 to 3Default2
words_per_line
srt and vtt only: words per line.
Values3 to 12Default7

Responses

The file, in UTF-8, with Content-Disposition: attachment; filename="<id>.<format>" and the Content-Type text/plain; charset=utf-8, application/x-subrip; charset=utf-8 or text/vtt; charset=utf-8. Here, format=txt.

400 invalid_parameter

A parameter unknown, sent twice, out of range, or not one the format takes (lines with txt, timestamps with srt); or subtitles of a transcript made with timestamps=none (param format).

No format.

No key, or a wrong, revoked or expired one.

404 not_found

An id that is unknown, deleted or past its 7 days; one sent with store=false; or another key's transcript, to a Member key.

409 not_completed

The transcript is still queued or processing, or it failed. Wait until it is completed.

503 unavailable

The service is busy for a moment. Send the request again after the seconds of the Retry-After header.

Notes

  • Booleans are true or false (also 1 or 0). An empty value counts as not sent.
  • To save the file under the name the API gives, <id>.<format>: curl -sS -H "Authorization: Bearer $VATIS_KEY" -OJ "https://api.eu.vatis.tech/v1/transcripts/$ID/export?format=srt".
  • What the files look like, and how their captions are cut: What the files look like.
  • With store=false nothing is kept to export: ask for the files with the request, in exports (Create a transcript).