# Captions and Transcripts

> Stream URL reference, generated from the OpenAPI spec.

HTML version: https://www.mux.com/docs/api-reference/stream/captions-and-transcripts. Full OpenAPI spec: https://www.mux.com/stream-spec.json

## Retrieve a WebVTT file for a text track

`GET https://stream.mux.com/{PLAYBACK_ID}/text/{TRACK_ID}.vtt`

Fetch a standalone WebVTT version of a text track from an asset.

Operation ID: `get-vtt-text-track`. HTML version: https://www.mux.com/docs/api-reference/stream/captions-and-transcripts/get-vtt-text-track

### Path parameters

- `PLAYBACK_ID` (string, required): The asset or live stream's playback ID.
- `TRACK_ID` (string, required): The ID of the track for an asset.

### Query parameters

- `token` (string): Signed token (JWT) for [secure video playback](https://docs.mux.com/guides/secure-video-playback).

### Response `200`

WebVTT retrieved successfully.

### Errors

- `400`: Invalid request due to missing or incorrect parameters.
- `404`: The requested text track was not found.

Every error response has this body:

- `error` (object)
  - `message` (string, required): Description of the error
  - `messages` (array of string): Description of the errors
  - `type` (string): Category of the error
  - `code` (integer, format: int32): Internal error code
- `code` (integer, format: int32): Internal error code
- `message` (string): Description of the error
