# List calls

`GET https://api.morevoice.ai/v1/calls`

The organisation's calls, newest first. Test-mode keys see only test calls. Filter by status, direction, type, assistant, campaign, agent, number or start time (`created[gte]`, `created[lt]`…).

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

Operation ID: `calls_list`.

## Parameters

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | How many objects to return, 1–100 (default 20). |
| `starting_after` | `string` | no | A cursor (`next_cursor`) or object ID: return the objects after it (older). |
| `ending_before` | `string` | no | A cursor or object ID: return the objects before it (newer). |
| `status` | `"in_progress" \| "ended"` | no | `in_progress`: calls that have not ended (queued, ringing or answered). `ended`: finished calls. |
| `direction` | `"inbound" \| "outbound" \| "browser"` | no | — |
| `type` | `"ai" \| "human" \| "ivr" \| "conference" \| "voicemail"` | no | — |
| `channel` | `"phone" \| "web" \| "whatsapp"` | no | Only calls of this channel (`whatsapp`: WhatsApp calls). |
| `assistant_id` | `string` | no | A assistant ID (`asst_…`). |
| `campaign_id` | `string` | no | A campaign ID (`cmp_…`). |
| `agent_id` | `string` | no | A user ID (`usr_…`). |
| `from` | `string` | no | Calls from this number, exactly as recorded on the call. |
| `to` | `string` | no | Calls to this number, exactly as recorded on the call. |
| `created` | `object` | no | Filter on started_at: created[gte], created[gt], created[lte], created[lt] (ISO-8601). |
| `expand` | `string[]` | no | Fields to expand into objects, e.g. expand[]=assistant. |

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

OK Returns `CallList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `Call[]` | — |
| `has_more` | `boolean` | Whether more objects follow in the requested direction. |
| `next_cursor` | `string \| null` | Pass as starting_after (or ending_before, when paging backwards) to continue; null on the last page. |
| `url` | `string` | The list's path. |

Example:

```json
{
  "data": [
    {
      "agent_id": null,
      "ai_disclosure_played": true,
      "ai_disclosure_played_at": "2026-11-03T09:14:35.020Z",
      "ai_generated": true,
      "ai_segments": [
        {
          "end_ms": 99710,
          "source": "assistant",
          "start_ms": 0
        }
      ],
      "answered_at": "2026-11-03T09:14:29.410Z",
      "answered_by": "human",
      "api_key_id": "key_9i2E2pKO6g3z4nXl57Qb4g",
      "assistant_id": "asst_4Gk2LmN9pQ4rS6tV8wX0yZ",
      "campaign_id": null,
      "channel": "phone",
      "connection_id": "conn_2bF8kQ1nR7sT3vW5xY9zA0",
      "consent_basis": "notice",
      "contact_id": null,
      "cost": {
        "amount": 4,
        "amount_decimal": "4.2310",
        "currency": "USD",
        "estimate": true
      },
      "direction": "outbound",
      "disposition": null,
      "duration_ms": 99710,
      "end_reason": "customer-ended-call",
      "ended_at": "2026-11-03T09:16:02.120Z",
      "flow_id": null,
      "flow_version": null,
      "from": "+97237654321",
      "has_recording": true,
      "id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
      "livemode": true,
      "metadata": {
        "crm_contact_id": "0031x00000AbCdE"
      },
      "object": "call",
      "purpose": "service",
      "queue_id": null,
      "recording_announced": true,
      "recording_announced_at": "2026-11-03T09:14:35.020Z",
      "started_at": "2026-11-03T09:14:22.000Z",
      "status": "ended",
      "summary": null,
      "to": "+972501234567",
      "transport": "sip",
      "type": "ai",
      "variables": {
        "customer_name": "Dana"
      },
      "whatsapp": null
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/calls"
}
```

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

for await (const call of mv.calls.list()) {
	console.log(call);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for call in client.calls.list():
    print(call)
```

**cURL**

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