# listEmployeeRunErrors

Runs of the organization's AI employees that FAILED, newest first: the employee (id and name), the contact (null when you may not see that contact), finishReason, endReason (why the run ended) and failureCategory (which failure; the run's error text is never exposed), started and finished times. Only employees the person's roster lists. Runs CREATED in since (inclusive) to until (exclusive), ISO datetimes WITH an offset, at most 14 days (a wider window is refused). Read from the organization's newest 20,000 runs in the window: in a busy organization narrow the window for older failures. At most limit (100) runs.

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

## Variables

- `since`: `DateTime!` (required)
- `until`: `DateTime!` (required)
- `limit`: `Int` (default `25`)

## Response (data, an example)

```json
{
  "deliveryHealthQuery": {
    "employeeRunErrors": [
      {
        "runId": "<ID>",
        "employeeId": "<ID>",
        "employeeName": "…",
        "contactId": "<ID>",
        "status": "…",
        "finishReason": "…",
        "endReason": "…",
        "failureCategory": "…",
        "startedAt": "2026-01-01T00:00:00.000Z",
        "finishedAt": "2026-01-01T00:00:00.000Z"
      }
    ]
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "listEmployeeRunErrors",
    "variables": {
      "since": "2026-01-01T00:00:00.000Z",
      "until": "2026-01-01T00:00:00.000Z"
    }
  }'
```
