# Retrieve a call's recording

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

Redirects (302) to a signed URL that streams the recording for 15 minutes, with no API key. With `format=json`, answers that URL as a `recording_link` object instead. The recording is stereo: the customer on the left channel, the assistant or agent on the right.

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

Operation ID: `calls_retrieve_recording`.

## Parameters

### Path parameters

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

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `format` | `"redirect" \| "json"` | no | redirect (default): 302 to the signed URL. json: the signed URL as a recording_link object. |

### 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

With format=json: the signed link. Otherwise 302 Found, Location: the signed link. Returns `RecordingLink`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"recording_link"` | — |
| `call_id` | `string` | A call ID (prefix `call_`). |
| `url` | `string` | A signed URL that streams the audio without an API key. It expires (expires_at). |
| `expires_at` | `string` | An ISO-8601 timestamp in UTC. |
| `content_type` | `string` | audio/wav, audio/ogg, audio/webm or audio/mpeg. |
| `duration_ms` | `integer \| null` | — |
| `channels` | `integer` | 2: the customer on the left channel, the assistant or agent on the right. |

Example:

```json
{
  "call_id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
  "channels": 2,
  "content_type": "audio/ogg",
  "duration_ms": 99710,
  "expires_at": "2026-11-03T09:30:00.000Z",
  "object": "recording_link",
  "url": "https://api.morevoice.ai/v1/recordings/AQAAAAABAAAAAAAAAAAAAAAAAAABVjFTdEdYUjhfWjVq.kH2pQ7xV9rT4mW1zB6nD8f"
}
```

### 302 Found

Found: the signed link to the recording (without format=json). It works without an API key for 15 minutes.

### 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 recordingLink = await mv.calls.retrieveRecording("call_7Hk2Lm9Qp");
console.log(recordingLink);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

recording_link = client.calls.retrieve_recording("call_7Hk2Lm9Qp")
print(recording_link)
```

**cURL**

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