# List a workflow's failed runs

```http
GET https://trydimmi.com/api/v1/workflows/{workflow}/failures
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `workflows:read`.

## Path parameters

- `workflow` (string, required): Id of the workflow, starting with wf_, such as wf_01jx2m8k4t. Find it with GET /workflows.

## Query parameters

- `from` (string): First day, YYYY-MM-DD.
- `to` (string): Last day, YYYY-MM-DD.
- `step_id` (string): Only this step.
- `before` (string): Run id (wfr_...) to read on from.
- `limit` (integer): How many to answer, at most 100.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `conversation_id` (string | null, required): Id of the conversation the run worked on, such as conv_....
  - `conversation_number` (integer | null, required): The conversation's number, as the inbox shows it.
  - `detail` (any, required): A few small facts the failing step kept, as an object.
  - `end_reason` (string | null, required): Why the run ended. Null while it has not.
  - `ended_at` (string | null, required): When the run ended. Null while it has not.
  - `error` (any, required): What went wrong, as the run recorded it. Null when it recorded nothing.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `outcome` (string | null, required): The failing step's outcome, such as failed.
  - `run_id` (string, required): Id of the run, such as wfr_....
  - `started_at` (string, required): When the run started.
  - `status` (string, required): Where the run stands, such as failed or completed.
  - `step_id` (string | null, required): Id of the first step that failed.
  - `step_kind` (string | null, required): What the failing step does, such as http_request or classify.
  - `version_number` (integer | null, required): The published version the run ran on.
- `links` (object): Addresses of related pages by name, such as next; left out when there are none.
- `meta` (object, required)
  - `next_cursor` (string | null, required): Send it as cursor to read the next page; null on the last page.
  - `per_page` (integer, required): How many items a page holds at most, such as 25.
  - `prev_cursor` (string | null, required): Send it as cursor to read the page before; null on the first page.
  - `total` (integer): How many items match in all; left out when the list does not count them.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request GET \
  --url 'https://trydimmi.com/api/v1/workflows/{workflow}/failures' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "conversation_id": "<string>",
      "conversation_number": 123,
      "detail": null,
      "end_reason": "<string>",
      "ended_at": "2026-11-01T09:30:00Z",
      "error": null,
      "id": "<string>",
      "object": "<string>",
      "outcome": "<string>",
      "run_id": "<string>",
      "started_at": "2026-11-01T09:30:00Z",
      "status": "<string>",
      "step_id": "<string>",
      "step_kind": "<string>",
      "version_number": 123
    }
  ],
  "links": {
    "<key>": "<string>"
  },
  "meta": {
    "next_cursor": "<string>",
    "per_page": 123,
    "prev_cursor": "<string>",
    "total": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
