---
title: "Retrieve voicemail audio"
description: "Retrieve an authorized voicemail message, including its available audio."
---

> **Account availability:** These examples describe the A1PBX version 7 interface. Confirm the endpoint, header authentication, response format, and record permissions for your assigned account before production use.

> **Requires mailbox access:** Availability and mailbox filtering must be confirmed for your account. Do not use this endpoint until A1ROUTES has confirmed the authorized mailbox scope.

## Request

Retrieve an authorized voicemail message, including its available audio.

`GET /voicemail_messages/{uuid}`

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `uuid` | string | Yes | Voicemail message identifier obtained from an authorized message listing. |

## Examples

### cURL

```bash
curl --fail-with-body --get \
  "https://$A1PBX_ACCOUNT_ID.a1routes.com/app/api/7/voicemail_messages/$MESSAGE_UUID" \
  --header "Authorization: Basic $A1PBX_API_KEY"
```

### Node.js

```javascript
const url = new URL(`https://${process.env.A1PBX_ACCOUNT_ID}.a1routes.com/app/api/7/voicemail_messages/${process.env.MESSAGE_UUID}`);
const response = await fetch(url, {
  headers: {
    Authorization: `Basic ${process.env.A1PBX_API_KEY}`,
  },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
```

### Python

```python
import os
import requests
url = f"https://{os.environ['A1PBX_ACCOUNT_ID']}.a1routes.com/app/api/7/voicemail_messages/{os.environ['MESSAGE_UUID']}"
response = requests.get(
    url,
    headers={"Authorization": "Basic " + os.environ["A1PBX_API_KEY"]},
    timeout=30,
)
response.raise_for_status()
print(response.text)
```

### PHP

```php
<?php
$url = 'https://' . getenv('A1PBX_ACCOUNT_ID') . '.a1routes.com/app/api/7/voicemail_messages/' . getenv('MESSAGE_UUID') . '';
$ch = curl_init($url);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => ['Authorization: Basic ' . getenv('A1PBX_API_KEY')],
]);
$body = curl_exec($ch);
if ($body === false) throw new RuntimeException(curl_error($ch));
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 400) throw new RuntimeException('HTTP ' . $status);
echo $body;
```

## Response

The documented interface can include message audio in `message_base64`. Confirm its presence and the surrounding response structure on your account. Decode audio only after checking that the request succeeded.

## Integration notes

Keep downloaded messages in access-controlled storage. Audio access is subject to mailbox permissions and retention. This operation does not delete or alter a message.

See [authentication](/docs/authentication), [pagination](/docs/pagination), and [error handling](/docs/errors).
