# Retrieve a call's transcript

`GET https://api.morevoice.ai/v1/calls/{id}/transcript`

Everything said on the call, in order, with the speaker of each segment. While the call runs, the transcript so far.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `calls_retrieve_transcript`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A call ID (`call_…`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `Transcript`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"transcript"` | — |
| `call_id` | `string` | A call ID (prefix `call_`). |
| `language` | `string \| null` | The call's main language (BCP 47), when known. |
| `segments` | `TranscriptSegment[]` | — |

Example:

```json
{
  "call_id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
  "language": "he",
  "object": "transcript",
  "segments": [
    {
      "end_ms": 3900,
      "interrupted": false,
      "speaker": "assistant",
      "start_ms": 820,
      "text": "שלום, כאן דנה ממוקד השירות. במה אפשר לעזור?",
      "tool": null
    },
    {
      "end_ms": 6100,
      "interrupted": false,
      "speaker": "customer",
      "start_ms": 4400,
      "text": "רציתי לבדוק מה עם ההזמנה שלי",
      "tool": null
    }
  ]
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

const transcript = await mv.calls.retrieveTranscript("call_7Hk2Lm9Qp");
console.log(transcript);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

transcript = client.calls.retrieve_transcript("call_7Hk2Lm9Qp")
print(transcript)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/calls/call_7Hk2Lm9Qp/transcript \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
