# List reports

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

Returns a page of `Report` objects, newest first. Pass `next_cursor` as `starting_after` for the next page; the SDKs iterate every page for you.

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

Operation ID: `reports_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). |

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

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `Report[]` | — |
| `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": [
    {
      "cadence": {
        "day_of_month": null,
        "days": [],
        "frequency": "daily",
        "time": "08:00",
        "timezone": "Asia/Jerusalem"
      },
      "created": "2026-11-03T09:14:22.000Z",
      "enabled": true,
      "filters": {
        "agent_ids": [],
        "assistant_ids": [],
        "campaign_ids": [],
        "flow_ids": [],
        "queue_ids": [],
        "team_ids": []
      },
      "formats": {
        "csv": false,
        "email": true,
        "pdf": true
      },
      "id": "rpt_2dXk9QmZ4rTv",
      "language": "he",
      "last_run": null,
      "last_run_at": null,
      "livemode": true,
      "name": "Daily contact-centre summary",
      "next_run_at": "2026-11-04T06:00:00.000Z",
      "object": "report",
      "owner_id": null,
      "period": "yesterday",
      "recipients": [
        {
          "type": "email",
          "value": "ops@example.com"
        }
      ],
      "updated": "2026-11-03T09:14:22.000Z",
      "widgets": [
        {
          "key": "w1",
          "params": {
            "limit": null,
            "sla_sec": null
          },
          "title": null,
          "type": "kpis"
        },
        {
          "key": "w2",
          "params": {
            "limit": null,
            "sla_sec": 20
          },
          "title": null,
          "type": "queues"
        }
      ]
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/reports"
}
```

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

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

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for report in client.reports.list():
    print(report)
```

**cURL**

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