# List events

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

Events in this mode, newest first, for the last 30 days. Filter by type (`type=call.*`, or several with `types[]`) and creation time (`created[gte]`…).

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

Operation ID: `events_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). |
| `type` | `string` | no | Only events of this type. An event type (`call.ended`), a group (`call.*`) or `"*"` for every event. |
| `types` | `string[]` | no | Only events of these types (`types[]=call.ended&types[]=qa.*`). |
| `created` | `object` | no | Filter on the creation time: created[gte], created[gt], created[lte], created[lt] (ISO-8601). |

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

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `Event[]` | — |
| `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": [
    {
      "api_version": "2026-11-01",
      "created": "2026-11-03T09:14:22Z",
      "data": {
        "object": {
          "duration_ms": 93120,
          "end_reason": "hangup",
          "id": "call_7Hk2LmN9pQ4rS6tV8wX0yZ",
          "metadata": {},
          "object": "call",
          "status": "ended"
        }
      },
      "id": "evt_3fT9kq2ZpLr8YwVbN1cX0a",
      "livemode": true,
      "object": "event",
      "org_id": "org_0000000000000000000001",
      "request": {
        "id": null,
        "idempotency_key": null
      },
      "type": "call.ended"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/events"
}
```

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

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for event in client.events.list():
    print(event)
```

**cURL**

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