# List a workflow's runs

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

## 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

- `limit` (integer): How many runs 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_.... Null when it has none.
  - `end_reason` (string | null, required): Why the run ended, such as completed, conversation_closed, teammate_replied, no_action, expired or internal_error. Null while it has not ended.
  - `ended_at` (string | null, required): When the run ended. Null while it is running or waiting.
  - `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.
  - `parent_run_id` (string | null, required): Id of the run that called this one from a run-workflow step, such as wfr_.... Null when nothing called it.
  - `started_at` (string, required): When the run started.
  - `status` (string, required): Where the run stands: running, waiting, completed, passed, exited, canceled, failed or expired.
  - `steps` (object[] | null, required): Every step the run executed, in order, with the path it took and its outcome.
    - `detail` (any, required): A few small facts the step kept, such as the member it picked, as an object. Never holds message text. Empty object when there are none.
    - `finished_at` (string | null, required): When the step finished. Null while it has not.
    - `kind` (string, required): What the step does, such as message, branch, wait, assign, tag, close, create_ticket or http_request.
    - `outcome` (string | null, required): What the step resulted in, as a short word. Null when it records none.
    - `path_id` (string | null, required): Id of the path the run took out of this step, as named in the workflow's definition. Null when the step has no paths.
    - `started_at` (string, required): When the step started.
    - `status` (string, required): How the step went: completed, waiting, skipped, failed or interrupted.
    - `step_id` (string, required): The step's id within the workflow's definition.
  - `trigger` (string, required): The event that started the run, such as message.customer or ticket.created.
  - `version_id` (string | null, required): Id of the published version the run ran on, such as wfv_....
  - `version_number` (integer | null, required): Number of 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}/runs' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "conversation_id": "<string>",
      "end_reason": "<string>",
      "ended_at": "2026-11-01T09:30:00Z",
      "id": "<string>",
      "object": "<string>",
      "parent_run_id": "<string>",
      "started_at": "2026-11-01T09:30:00Z",
      "status": "<string>",
      "steps": [
        {
          "detail": null,
          "finished_at": "2026-11-01T09:30:00Z",
          "kind": "<string>",
          "outcome": "<string>",
          "path_id": "<string>",
          "started_at": "2026-11-01T09:30:00Z",
          "status": "<string>",
          "step_id": "<string>"
        }
      ],
      "trigger": "<string>",
      "version_id": "<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)
