# listWorkflowRunErrors

Every workflow's runs in the organization that FAILED or are PAUSED (statuses to narrow), newest first, each with its workflow (workflowAutomation id and name) and contact: failureReason (why a FAILED run failed, a code such as RESCUES_SPENT; null on an older run), pausedReason, pauseCause and sendFailureCode (a PAUSED run's, as listWorkflowRuns words them), stoppedReason, and currentNodeId (the step; getWorkflowVersionGraph names it). A run's error text is never exposed. One workflow's runs: listWorkflowRuns.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "listWorkflowRunErrors", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no
- Result cap: `limit` is clamped to 25, without an error

## Variables

- `statuses`: `[WorkflowAutomationRunStatus!]` (default `[FAILED, PAUSED]`, one of `PENDING`, `RUNNING`, `COMPLETED`, `PAUSED`, `STOPPED`, `FAILED`, `NOT_ENROLLED`)
- `limit`: `Int` (default `25`)
- `offset`: `Int` (default `0`)

## Response (data, an example)

```json
{
  "workflowAutomationsQuery": {
    "listWorkflowRuns": [
      {
        "id": "<ID>",
        "status": "PENDING",
        "createdAt": "2026-01-01T00:00:00.000Z",
        "updatedAt": "2026-01-01T00:00:00.000Z",
        "failureReason": "…",
        "stoppedReason": "…",
        "pausedReason": "…",
        "pauseCause": "…",
        "sendFailureCode": "…",
        "currentNodeId": "<ID>",
        "workflowAutomation": {
          "id": "<ID>",
          "name": "…"
        },
        "contact": {
          "id": "<ID>",
          "name": "…"
        }
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listWorkflowRunErrors",
    "variables": {}
  }'
```
