---
title: "List call recordings"
description: "Find recorded calls available to your A1PBX API account."
---

> **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.

## Request

Find recorded calls available to your A1PBX API account.

`GET /view_call_recordings`

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | No | Requested number of results. Confirm the allowed maximum for your account. |
| `offset` | integer | No | Pagination position. Confirm offset semantics for your deployed API before incrementing it. |

## Examples

### cURL

```bash
curl --fail-with-body --get \
  "https://$A1PBX_ACCOUNT_ID.a1routes.com/app/api/7/view_call_recordings" \
  --header "Authorization: Basic $A1PBX_API_KEY" \
  --data-urlencode "limit=20" \
  --data-urlencode "offset=0"
```

### Node.js

```javascript
const url = new URL(`https://${process.env.A1PBX_ACCOUNT_ID}.a1routes.com/app/api/7/view_call_recordings`);
url.searchParams.set('limit', "20");
url.searchParams.set('offset', "0");
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/view_call_recordings"
response = requests.get(
    url,
    params={
        "limit": "20",
        "offset": "0",
    },
    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/view_call_recordings';
$url .= '?' . http_build_query([
    'limit' => '20',
    'offset' => '0',
]);
$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

Inspect an authorized response from your account to establish the returned fields, content type, and empty-result behavior. Response schemas are intentionally not asserted until verified for the deployed service.

## Integration notes

This endpoint lists recorded calls. IVR prompts and other uploaded audio are separate resources. Use the identifier returned for the recording download endpoint; confirm its relationship to the CDR identifier rather than assuming they are interchangeable.

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