# List calls

> List calls: GET /calls.

**GET** `/calls`

Newest first. Cursor-paged: pass the last call's id as starting_after
for the next page. Needs calls:read; a key limited to some campaigns
sees only their calls.

Deprecated for one release: offset and status (and a limit over
100) still answer the old list shape, with a Deprecation header.

## Parameters

| Name | In | Type | Required | Notes |
| --- | --- | --- | --- | --- |
| `limit` | query | integer |  | Default `50`. 1 to 100. |
| `starting_after` | query | string (uuid) |  |  |
| `campaign_id` | query | string (uuid) |  |  |
| `lead_id` | query | string (uuid) |  |  |
| `external_id` | query | string |  | The lead's ID in your system. |
| `outcome` | query | string |  | One of `interested` / `not_interested` / `callback` / `voicemail` / `no_answer` / `busy` / `failed` / `dnc` / `wrong_number` / `hung_up` / `screened` / `language_barrier` / `not_qualified` / `undetermined` / `other`. |
| `created[gte]` | query | string |  |  |
| `created[lte]` | query | string |  |  |
| `offset` | query | integer |  |  |
| `status` | query | string |  |  |

## Example request

### curl

```bash
curl -X GET 'https://v2-api.callview.ai/api/v1/external/calls' \
  -u "$CALLVIEW_KEY_ID:$CALLVIEW_SECRET"
```

### Node

```js
const auth = Buffer.from(`${process.env.CALLVIEW_KEY_ID}:${process.env.CALLVIEW_SECRET}`).toString('base64');

const res = await fetch('https://v2-api.callview.ai/api/v1/external/calls', {
  method: 'GET',
  headers: { Authorization: `Basic ${auth}` },
});
console.log(res.status, res.headers.get('request-id'));
console.log(await res.text());
```

### Python

```python
import os

import requests

res = requests.request(
    "GET",
    "https://v2-api.callview.ai/api/v1/external/calls",
    auth=(os.environ["CALLVIEW_KEY_ID"], os.environ["CALLVIEW_SECRET"]),
    timeout=30,
)
print(res.status_code, res.headers.get("Request-Id"))
print(res.text)
```

### PHP

```php
<?php
$ch = curl_init('https://v2-api.callview.ai/api/v1/external/calls');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_USERPWD => getenv('CALLVIEW_KEY_ID') . ':' . getenv('CALLVIEW_SECRET'),
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HEADER => false,
]);
$body = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE), "\n", $body, "\n";
```

## Response

**200** A page of calls, newest first

```json
{
  "data": [
    {
      "id": "e4d3c2b1-a09f-4e8d-9c7b-6a5f4e3d2c1b",
      "object": "call",
      "livemode": true,
      "lead": {
        "id": "2b8e4c1d-9f3a-4b7e-8c21-6a5d4e3f2b10",
        "external_id": "crm-10442",
        "name": "LEAD_NAME",
        "phone": "+15555550142"
      },
      "campaign_id": "7c1f2b9e-4a3d-4e8f-9b21-5d6a7e8f9a01",
      "direction": "outbound",
      "status": "ended",
      "outcome": "interested",
      "outcome_label": "Interested",
      "note": "Wants a quote for a 6 kW system; home owner, roof replaced 2019.",
      "duration_seconds": 412,
      "started": "2026-10-06T16:58:06.000Z",
      "answered": "2026-10-06T16:58:14.000Z",
      "ended": "2026-10-06T17:04:58.000Z",
      "updated": "2026-10-06T17:05:20.000Z",
      "handled_by": {
        "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
        "name": "SDR_NAME",
        "role": "sdr"
      },
      "owner": null,
      "tth_seconds": 9.3,
      "callback_at": null,
      "recording_available": true,
      "transcript_available": true,
      "started_by": {
        "type": "api",
        "api_key_id": "key_example"
      }
    }
  ],
  "meta": {
    "next_cursor": null,
    "has_more": false
  }
}
```

## Errors

| Status | Codes |
| --- | --- |
| 400 | [`invalid_request`](https://developers.callview.ai/reference/errors/#invalid_request) |
| 401 | [`authentication_failed`](https://developers.callview.ai/reference/errors/#authentication_failed) |
| 403 | [`permission_denied`](https://developers.callview.ai/reference/errors/#permission_denied) |
| 404 | [`not_found`](https://developers.callview.ai/reference/errors/#not_found) |
| 429 | [`rate_limited`](https://developers.callview.ai/reference/errors/#rate_limited), [`too_many_concurrent_requests`](https://developers.callview.ai/reference/errors/#too_many_concurrent_requests) |
| 500 | [`internal_error`](https://developers.callview.ai/reference/errors/#internal_error) |

Part of [Calls](https://developers.callview.ai/reference/calls/). Every example sends your key ID and secret as `CALLVIEW_KEY_ID` and `CALLVIEW_SECRET` (see [Keys and authentication](https://developers.callview.ai/guides/authentication/)).
