# List workflow runs

Returns workflow runs, one page at a time.

```http
GET https://api.pozy.ai/v1/workflows/{workflowId}/executions
```

- Area: Automations / Workflows
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `workflowId` (string, required)

## Query parameters

- `status` (string): one of running, waiting, completed, exited, failed
- `limit` (integer)
- `skip` (integer)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions?limit=25" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions?limit=25", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/workflows/6e299f518f373bfd669857c4/executions",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "limit": 25,
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `executions`, array of object
  - `id`, string
  - `status`, string: One of `running`, `waiting`, `completed`, `exited`, `failed`
  - `currentNodeId`, string
  - `waitingFor`, object: Can be null
    - `kind`, string: One of `timer`, `reply`
    - `nodeId`, string
  - `variables`, object
  - `platformIdentifier`, string
  - `conversationId`, string: Can be null
  - `stepCount`, integer
  - `lastError`, string: Can be null
  - `resumeAt`, string (date-time): Can be null
  - `createdAt`, string (date-time)
  - `updatedAt`, string (date-time)
  - `completedAt`, string (date-time): Can be null
- `pagination`, object
  - `total`, integer
  - `limit`, integer
  - `skip`, integer
  - `hasMore`, boolean

```json
{
  "success": true,
  "executions": [
    {
      "id": "6bfebd43ddc270f6d2c56fc5",
      "status": "running",
      "currentNodeId": "6824a29c1481b019b3350794",
      "waitingFor": {
        "kind": "timer",
        "nodeId": "661065480d0716ebcd3f1af3"
      },
      "variables": {},
      "platformIdentifier": "instagram",
      "conversationId": "6e525f3820fc636aa96d2ee9",
      "stepCount": 42,
      "lastError": "string",
      "resumeAt": "2026-10-02T09:00:00.000Z",
      "createdAt": "2026-10-02T09:00:00.000Z",
      "updatedAt": "2026-10-02T09:00:00.000Z",
      "completedAt": "2026-10-02T09:00:00.000Z"
    }
  ],
  "pagination": {
    "total": 42,
    "limit": 1,
    "skip": 1,
    "hasMore": true
  }
}
```
