# List missed calls

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

Inbound calls nobody answered (the caller left, a queue or route had nobody, a voicemail, a call that rang out or failed), as the callbacks inbox lists them, newest first. When missed calls are work items for the organization, every unhandled missed call of one caller is one item (`count`, `calls`) with the call-back attempts that did not reach them. A missed call is handled when a later call reaches the caller, their callback is completed, or someone marks it done. With `agent_id`, as that agent's inbox shows them; without it, the whole organization. Needs a key that sees all the organization's calls.

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

Operation ID: `missed_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). |
| `view` | `"open" \| "mine" \| "queue" \| "done"` | no | `open` (default): not handled yet. `mine`: open and held by `agent_id` (required). `queue`: open and nobody holds them. `done`: handled (marked done, a later call reached the caller, or their callback was completed). |
| `agent_id` | `string` | no | List as this agent sees the inbox: their queues' missed calls, the ones assigned to them and the calls their role shows. Default: the whole organization. |
| `kind` | `"abandoned" \| "overflow" \| "voicemail" \| "unanswered" \| "failed"` | no | Only this kind: `abandoned` (the caller left while waiting or ringing), `overflow` (a queue or route had nobody to take it), `voicemail` (they left a message), `unanswered` (it rang out) or `failed` (it failed before anyone answered). |
| `phone` | `string` | no | Only callers whose number contains these digits (3 or more). |
| `queue_id` | `string` | no | Only calls that waited in this queue. |
| `days` | `integer` | no | How many days back (1–30). Default: 30 for the open views when missed calls are work items, else 7. |

### 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 `MissedCallList`.

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `MissedCall[]` | — |
| `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. |
| `window_days` | `integer` | How many days back the list looks. |
| `truncated` | `boolean` | The scan stopped at its cap (500 calls): older missed calls were not checked. |
| `scanned_since` | `string \| null` | When truncated: the oldest call the scan reached. |

Example:

```json
{
  "data": [
    {
      "agent_id": null,
      "attempts": [
        {
          "agent_id": "usr_4Gk2LmN9pQ4rS6tV8wX0yZ",
          "at": "2026-11-03T08:30:00.000Z",
          "call_id": "call_2bVnT8kLq4MxZp7RwC1dYe",
          "result": "no_answer",
          "via": "agent"
        }
      ],
      "attempts_total": 1,
      "calls": [
        {
          "id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
          "kind": "abandoned",
          "started_at": "2026-11-03T09:14:22.000Z"
        },
        {
          "id": "call_5mQwLk2Rt8ZpXa3BvN6cYd",
          "kind": "unanswered",
          "started_at": "2026-11-03T08:02:10.000Z"
        }
      ],
      "count": 2,
      "dialled": "+97235550000",
      "first_at": "2026-11-03T08:02:10.000Z",
      "handled": null,
      "id": "call_8tRPaZp5hLMbrGqdJ9AmNa",
      "kind": "abandoned",
      "livemode": true,
      "object": "missed_call",
      "phone": "+972501234567",
      "queue_id": "q_3hRf8Kd2LmPq",
      "started_at": "2026-11-03T09:14:22.000Z",
      "waited_ms": 48000
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "scanned_since": null,
  "truncated": false,
  "url": "/v1/missed_calls",
  "window_days": 30
}
```

### 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 missedCall of mv.missedCalls.list()) {
	console.log(missedCall);
}
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for missed_call in client.missed_calls.list():
    print(missed_call)
```

**cURL**

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