# List Calls

> List the calls (runs) made or received by one voice agent

URL: https://docs.lemuai.com/api-reference/agents/runs/list

Returns the calls for one voice agent, newest first, a page at a time. Each call is called a **run**. Use it to check whether a call you [triggered](https://docs.lemuai.com/api-reference/calls/trigger) has finished and what the agent captured.

**Tip:** If you need each result as soon as a call ends, add a [Webhook node](https://docs.lemuai.com/voice-agent/webhook) to the agent instead of polling this endpoint.

**Endpoint:** `GET /api/v1/workflow/{workflow_id}/runs`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `workflow_id` | integer | Yes | The agent's `id` from [List agents](https://docs.lemuai.com/api-reference/agents/list). |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `page` | integer | No | Page number, starting at `1`. Default `1`. |
| `limit` | integer | No | Calls per page. Default `50`. |
| `sort_by` | string | No | `created_at` (default) or `duration`. |
| `sort_order` | string | No | `desc` (default) or `asc`. |
| `filters` | string | No | A JSON array of filters, URL-encoded. See below. |

## Filters

`filters` is a JSON array. Each item has an `attribute`, a `type`, and a `value`:

| Attribute | Type | Value | Matches calls |
|---|---|---|---|
| `dateRange` | `dateRange` | `{"from": "2026-10-01T00:00:00", "to": "2026-10-31T23:59:59"}` | Started between the two times (ISO 8601). Either end can be left out. |
| `status` | `radio` | `{"status": "completed"}` or `{"status": "in_progress"}` | That have finished, or are still going |
| `dispositionCode` | `multiSelect` | `{"codes": ["INTERESTED", "CALLBACK"]}` | Ended with one of these disposition codes |
| `duration` | `numberRange` | `{"min": 30, "max": 600}` | Lasted between these numbers of seconds |

Any other attribute returns `403`. A `filters` value that isn't valid JSON returns `400`.

**Example request** (completed calls from October):

**cURL**

```bash
curl -G "https://app.lemuai.com/api/v1/workflow/412/runs" \
  -H "X-API-Key: lemu_your_api_key" \
  --data-urlencode 'limit=20' \
  --data-urlencode 'filters=[{"attribute":"status","type":"radio","value":{"status":"completed"}},{"attribute":"dateRange","type":"dateRange","value":{"from":"2026-10-01T00:00:00"}}]'
```

**JavaScript**

```js
const params = new URLSearchParams({
  "limit": "20",
  "filters": "[{\"attribute\":\"status\",\"type\":\"radio\",\"value\":{\"status\":\"completed\"}},{\"attribute\":\"dateRange\",\"type\":\"dateRange\",\"value\":{\"from\":\"2026-10-01T00:00:00\"}}]",
});
const res = await fetch(`https://app.lemuai.com/api/v1/workflow/412/runs?${params}`, {
  method: "GET",
  headers: {
    "X-API-Key": process.env.LEMU_API_KEY,
  },
});
if (!res.ok) throw new Error(`LemuAI API ${res.status}: ${await res.text()}`);
const data = await res.json();
console.log(data);
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.lemuai.com/api/v1/workflow/412/runs",
    headers={
        "X-API-Key": os.environ["LEMU_API_KEY"],
    },
    params={
        "limit": "20",
        "filters": "[{\"attribute\":\"status\",\"type\":\"radio\",\"value\":{\"status\":\"completed\"}},{\"attribute\":\"dateRange\",\"type\":\"dateRange\",\"value\":{\"from\":\"2026-10-01T00:00:00\"}}]",
    },
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

## Response

**`200`**
```json
{
  "runs": [
    {
      "id": 18234,
      "workflow_id": 412,
      "name": "WR-API-4821",
      "mode": "plivo",
      "created_at": "2026-10-23T11:05:12Z",
      "is_completed": true,
      "call_type": "outbound",
      "definition_id": 1907,
      "initial_context": {
        "phone_number": "+919876543210",
        "customer_name": "Priya",
        "order_id": "ORD-1042"
      },
      "gathered_context": {
        "delivery_confirmed": true,
        "preferred_time": "after 5 pm",
        "mapped_call_disposition": "CONFIRMED"
      },
      "cost_info": {
        "billed_minutes": 2,
        "call_duration_seconds": 94
      },
      "recording_url": "recordings/18234.wav",
      "transcript_url": "transcripts/18234.txt"
    }
  ],
  "total_count": 1284,
  "page": 1,
  "limit": 20,
  "total_pages": 65,
  "applied_filters": [
    { "attribute": "status", "type": "radio", "value": { "status": "completed" } }
  ]
}
```

| Field | Type | Description |
|---|---|---|
| `runs` | array | The calls on this page. Fields of each call are below. |
| `total_count` | integer | Calls matching your filters across all pages. |
| `page` | integer | The page returned. |
| `limit` | integer | Calls per page. |
| `total_pages` | integer | Number of pages at this `limit`. |
| `applied_filters` | array or null | The filters that were applied, or `null` if none. |

**Each call:**

| Field | Type | Description |
|---|---|---|
| `id` | integer | The call's id. Matches `workflow_run_id` from [Trigger an outbound call](https://docs.lemuai.com/api-reference/calls/trigger). |
| `workflow_id` | integer | The agent that handled the call. |
| `name` | string | The call's label in the dashboard. |
| `mode` | string | How the call was connected: the telephony provider (for example `twilio`, `plivo`, `exotel`), or `webrtc` / `textchat` for browser tests. |
| `created_at` | string | When the call started (ISO 8601, UTC). |
| `is_completed` | boolean | `true` once the call has ended. |
| `call_type` | string | `outbound` or `inbound`. |
| `definition_id` | integer or null | The version of the agent that ran this call. |
| `initial_context` | object or null | The data the call started with, including `phone_number` and anything you sent in `initial_context`. |
| `gathered_context` | object or null | What the agent captured during the call, plus `mapped_call_disposition` (the disposition code the call ended with). Empty until the call has finished. |
| `cost_info` | object or null | `call_duration_seconds` and `billed_minutes` for the call. `null` until the call has ended. |
| `recording_url`, `transcript_url` | string or null | Internal references to the stored recording and transcript. Open recordings and transcripts from the call in the dashboard; they are not downloadable through the API. |

**Note:** Phone numbers and other personal details in `initial_context` and `gathered_context` may be partly hidden, depending on whether the person who created the API key is allowed to view personal data in your organization.
