---
title: "Get a transcript"
description: "What was said in a file (automatic speech recognition): phrases with their times, and every word with `words=true`. `status` is `processing` while it is transcribed; 409 media_not_ready while the file is still fetched or prepared. Needs the `videos:read` permission."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mosio.me/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Mosio REST API › References

`GET /v1/media/{id}/transcript`

What was said in a file (automatic speech recognition): phrases with their times, and every word with `words=true`. `status` is `processing` while it is transcribed; 409 media_not_ready while the file is still fetched or prepared. Needs the `videos:read` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Path parameters

- `id` (`getMediaTranscript.path.id`; string, required)

## Query parameters

- `words` (`getMediaTranscript.query.words`; boolean, optional)
  - default `false`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://app.mosio.me/v1/media/<id>/transcript' \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/media/<id>/transcript';
const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/media/<id>/transcript"

headers = {"x-api-key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The transcript.

#### Example

```json
{
  "media_id": "string",
  "status": "ready",
  "transcript": {
    "language": "string",
    "model": "string",
    "word_count": 9007199254740991,
    "dropped": 9007199254740991,
    "phrases": [
      {
        "start": 0,
        "end": 0,
        "text": "string"
      }
    ],
    "words": [
      {
        "text": "string",
        "start": 0,
        "end": 0,
        "p": 1
      }
    ]
  }
}
```

- `media_id` (`getMediaTranscript.response.200.media_id`; string, required)
- `status` (`getMediaTranscript.response.200.status`; string, required)
  - one of `"ready"`, `"processing"`, `"failed"`, `"none"`
- `transcript` (`getMediaTranscript.response.200.transcript`; any of, required)
  - any of: `object`, `null`

### 400

The request body is not valid JSON or does not match the schema.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`getMediaTranscript.response.400.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMediaTranscript.response.400.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMediaTranscript.response.400.details`; unknown, optional) — More about the error, such as the fields to fix.

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`getMediaTranscript.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMediaTranscript.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMediaTranscript.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.

### 404

No such video or file in this workspace.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`getMediaTranscript.response.404.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`getMediaTranscript.response.404.message`; string, required) — A message for people, in Indonesian.
- `details` (`getMediaTranscript.response.404.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/get-media-transcript/index.md
