# Get Call Recording

> GET /masking/calls/:call_sid/recording — get a short-lived signed URL to download the call recording.

Source: https://edesy.in/docs/number-masking/api-reference/get-recording

```
GET /masking/calls/:call_sid/recording
```

Returns a short-lived **signed URL (valid for 1 hour)** that streams the recording. The URL is path-only and relative to the API origin — prefix it with `https://voice-api.edesy.in` to download. Recordings are typically available within a few seconds of the call ending.

## Path parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `call_sid` | string (UUID) | Yes | The `call_sid` returned by [Initiate a Call](https://edesy.in/docs/number-masking/api-reference/initiate-call). |

## Request

```bash
curl https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording \
  -H "Authorization: Bearer vp_YOUR_API_KEY"
```

```javascript
const response = await fetch(
  "https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording",
  { headers: { "Authorization": "Bearer vp_YOUR_API_KEY" } },
);
console.log(await response.json());
```

```python
import requests

response = requests.get(
    "https://voice-api.edesy.in/v1/masking/calls/d28be7cd-9840-4b23-9627-199f1ef81fc6/recording",
    headers={"Authorization": "Bearer vp_YOUR_API_KEY"},
)
print(response.json())
```

## Responses

**`200` — Signed download URL (valid 1h)**

```json
{
  "data": {
    "url": "/v1/public/recordings/masking/d28be7cd-9840-4b23-9627-199f1ef81fc6?t=1747091400.aXKy3...",
    "call_sid": "d28be7cd-9840-4b23-9627-199f1ef81fc6"
  }
}
```

Prefix the `url` with `https://voice-api.edesy.in` to download the file.

**`404` — Call has no recording (e.g. it never connected) or doesn't exist**

```json
{
  "error": { "code": "not_found", "message": "No recording available for this call" }
}
```
