Working with transcripts

A completed transcription job — or a bring-your-own import — leaves a text source (txt_…). Default GET is the copy you ship to users, captions, and downstream jobs. Load layers only if you are building an editor.

The working copy

GET /v1/transcriptions/{id} returns glossary applied, manual edits included, word timings reconciled to segment text. Use this for export, clips, search, and anything a viewer should see.

  • Library / previews — GET /v1/transcriptions
  • Captions — same retrieve with ?format=srt or ?format=vtt

Endpoint details: Transcripts.

Layers (editors only)

Layers are editorial history. Skip them in export pipelines.

  • raw — engine output at job completion
  • glossary — after project glossary rules
  • current — glossary plus manual segment edits (bind the editor here)
  • diffs — text changes between layers; wordSyncVsRaw is timing adjustments

Fetch with ?include=layers on retrieve, or GET …/layers.

Saving edits

Every save sends the transcript revision you last read. The response returns the new revision — store it before the next save.

  • One segment — PATCH …/segments/{segmentId} with text / speaker / voiceId / start / end + revision
  • Many segments — one PATCH …/segments with updates[]. Do not fire parallel single-segment PATCHes with the same starting revision.
  • New segment — POST …/segments with revision + start / end (server assigns the id).

Timing uses half-open intervals [start, end) — boundary touches are allowed, positive overlaps return 422 overlap. See endpoint details: Transcripts.

409 conflict means another save, glossary apply, or revert won. Re-GET, merge, retry with the new revision.

Glossary and undo

Bulk terminology: POST …/glossary/preview, then POST …/glossary/apply with the current revision if the user confirms.

Undo: POST …/revert/glossary and POST …/revert/raw also send revision. A stale value returns 409 and does not overwrite newer edits. Revert to glossary drops manual edits but keeps glossary; revert to raw resets to engine output.