# List a report's runs

`GET https://api.morevoice.ai/v1/reports/{id}/runs`

Returns a page of `ReportRun` objects, newest first. Pass `next_cursor` as `starting_after` for the next page; the SDKs iterate every page for you. Answers `404` with the code `resource_missing` when nothing has this ID in this organisation and mode.

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

Operation ID: `reports_list_runs`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A report ID (`rpt_…`). |

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

| Field | Type | Description |
| --- | --- | --- |
| `object` | `"list"` | — |
| `data` | `ReportRun[]` | — |
| `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": [
    {
      "artifacts": {
        "csv": false,
        "pdf": true
      },
      "deliveries": [
        {
          "email": "ops@example.com",
          "error": null,
          "status": "sent"
        }
      ],
      "error": null,
      "finished_at": "2026-11-04T06:00:09.000Z",
      "id": "rptrun_2nH8kQ1",
      "livemode": true,
      "object": "report_run",
      "period_from": "2026-11-02T22:00:00.000Z",
      "period_to": "2026-11-03T22:00:00.000Z",
      "recipients": [
        "ops@example.com"
      ],
      "report_id": "rpt_2dXk9QmZ4rTv",
      "started_at": "2026-11-04T06:00:01.000Z",
      "status": "sent",
      "trigger": "manual"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "object": "list",
  "url": "/v1/reports/rpt_2dXk9QmZ4rTv/runs"
}
```

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

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

for report in client.reports.list_runs("rpt_7Hk2Lm9Qp"):
    print(report)
```

**cURL**

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