# List the AI agent's runs on a conversation

```http
GET https://trydimmi.com/api/v1/conversations/{conversation}/ai/runs
```

## Authorization

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

## Path parameters

- `conversation` (string, required): Id of the conversation, starting with conv_. A number does not work here; find the id with GET /conversations/{conversation}.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `answer_message_id` (string | null, required): Id of the message the agent sent as its answer, such as msg_... Null when the run sent none.
  - `completed_at` (string | null, required): When the run finished. Null while it is still running.
  - `conversation_id` (string | null, required): Id of the conversation the run worked on, such as conv_... Null for a run outside a conversation, such as a playground question.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `error` (any, required): Why the run failed, as an object with code and message. Null when it did not fail.
  - `feedback` (string | null, required): How the answer was rated: helped, not_helped, solved, handoff, discarded, good or bad. Null when nobody rated it.
  - `first_token_ms` (integer | null, required): Milliseconds until the first piece of the answer arrived. Null when not measured.
  - `flags` (string[] | null, required): Things that stepped in during the run, such as link_removed, reply_regenerated, reply_withheld, implied_handoff or enforced_handoff. Empty when nothing did.
  - `handoff_reason` (string | null, required): Why the agent handed the conversation to the team, such as customer_requested, unknown, max_replies, frustration, spend_cap or provider_error. Null when it did not hand off.
  - `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.
  - `input_tokens` (integer, required): Tokens sent to the models during the run.
  - `kind` (string, required): What the run was for: conversation, playground, probe, help_center, task, classify, judge, ticket_fill, ticket_match, ticket_summary or simulation.
  - `language` (string | null, required): The language detected for the run, as a language tag such as en. Null when none was detected.
  - `latency_ms` (integer | null, required): Milliseconds the whole run took. Null when not measured.
  - `outcome` (string | null, required): How the run ended: answered, unknown, handoff, silent, greeted, refused, skipped, superseded, drafted or error. Null while it runs.
  - `output_tokens` (integer, required): Tokens the models wrote during the run.
  - `payloads_visible` (boolean): True when the caller may read the steps' request and response payloads. Present only when one run is read with its steps.
  - `procedure_trace` (any): What the run did with the procedure it followed: the path taken, the branches decided and where a guardrail stepped in. Left out when it followed none.
  - `prompt_version` (string, required): The version of the prompts the run used. Empty when not recorded.
  - `skip_reason` (string | null, required): Why the run was skipped without answering, such as human_replied_in_delay or agent_missing. Null when it was not skipped.
  - `status` (string, required): Where the run stands: running, completed, failed or skipped.
  - `steps` (object[] | null): The run's traced steps in order. Present only when one run is read, not in lists.
    - `error_kind` (string | null, required): The kind of failure when the step failed, such as auth, quota, rate_limited, overloaded, timeout or network. Null when it did not fail.
    - `first_token_ms` (integer | null, required): Milliseconds until the model's first output arrived in this step. Null when not measured.
    - `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.
    - `input_tokens` (integer, required): Tokens sent to the model in this step.
    - `kind` (string, required): What the step did: classify, retrieve, generate, tool_call, verify, summarize, translate or probe.
    - `latency_ms` (integer | null, required): Milliseconds the step took. Null when not measured.
    - `model` (string | null, required): Id of the model the step called. Null for a step that called none.
    - `output_tokens` (integer, required): Tokens the model wrote in this step.
    - `provider` (string | null, required): The model provider the step called, such as dimmi, anthropic or openai. Null for a step that called none.
    - `request` (any, required): The redacted record of what the step sent. Null when the caller may not read payloads or the record's retention has passed.
    - `response` (any, required): The redacted record of what came back. Null when the caller may not read payloads or the record's retention has passed.
    - `seq` (integer, required): The step's position within its run; steps run in rising order.
    - `status` (string, required): How the step ended: ok, error or canceled.
    - `upstream` (string | null, required): The provider the model's calls actually reached, when that differs from the connection's name. Null when not recorded.
- `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/conversations/{conversation}/ai/runs' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "answer_message_id": "<string>",
      "completed_at": "2026-11-01T09:30:00Z",
      "conversation_id": "<string>",
      "created_at": "2026-11-01T09:30:00Z",
      "error": null,
      "feedback": "<string>",
      "first_token_ms": 123,
      "flags": [
        "<string>"
      ],
      "handoff_reason": "<string>",
      "id": "<string>",
      "input_tokens": 123,
      "kind": "<string>",
      "language": "<string>",
      "latency_ms": 123,
      "outcome": "<string>",
      "output_tokens": 123,
      "payloads_visible": true,
      "procedure_trace": null,
      "prompt_version": "<string>",
      "skip_reason": "<string>",
      "status": "<string>",
      "steps": [
        {
          "error_kind": "<string>",
          "first_token_ms": 123,
          "id": "<string>",
          "input_tokens": 123,
          "kind": "<string>",
          "latency_ms": 123,
          "model": "<string>",
          "output_tokens": 123,
          "provider": "<string>",
          "request": null,
          "response": null,
          "seq": 123,
          "status": "<string>",
          "upstream": "<string>"
        }
      ]
    }
  ],
  "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)
