# List an AI agent's simulations

```http
GET https://trydimmi.com/api/v1/ai/agents/{agent}/simulations
```

## Authorization

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

## Path parameters

- `agent` (string, required): Id of the AI agent, starting with aia_, such as aia_01jx2m8k4t. Find it with GET /ai/agents.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `action_mocks` (any, required): What each mocked action answers, as a JSON object keyed by action, each with an HTTP status and a body.
  - `agent_id` (string, required): Id of the agent the simulation belongs to (starts with aia_).
  - `assertions` (any, required): What must hold after the simulated conversation, as a JSON array of checks, such as an action call, a handover, reply text or a check written in words.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `draft_history` (object, required)
    - `passed` (integer, required): How many of the counted runs passed.
    - `runs` (object[] | null, required): The counted runs, newest first.
      - `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.
      - `passed` (boolean, required): true when every check of the run held.
      - `ran_at` (string, required): When the run happened.
    - `state` (string, required): passing when every counted run passed, failing when none did, flaky in between. One of: `passing`, `flaky`, `failing`.
    - `total` (integer, required): How many runs are counted.
    - `window` (integer, required): The most runs a history counts: only the latest this many.
  - `draft_result` (any, required): How its last run on the draft went, as a JSON object with passed, ran_at, turns, assertion_results and, on a broken run, error. Null when it never ran there.
  - `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.
  - `live_history` (object, required)
    - `passed` (integer, required): How many of the counted runs passed.
    - `runs` (object[] | null, required): The counted runs, newest first.
      - `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.
      - `passed` (boolean, required): true when every check of the run held.
      - `ran_at` (string, required): When the run happened.
    - `state` (string, required): passing when every counted run passed, failing when none did, flaky in between. One of: `passing`, `flaky`, `failing`.
    - `total` (integer, required): How many runs are counted.
    - `window` (integer, required): The most runs a history counts: only the latest this many.
  - `live_result` (any, required): How its last run on the live version went, as a JSON object with passed, ran_at, turns, assertion_results and, on a broken run, error. Null when it never ran there.
  - `messages` (any, required): The customer's messages, in order, as a JSON array; each has text and an optional confirm.
  - `name` (string, required): Name of the simulation, up to 120 characters.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `persona` (any, required): The made-up customer, as a JSON object with fields such as name, email, verified, channel, attributes and company.
  - `scenario` (string, required): Who the customer is and what they came for. The simulated customer answers from it.
  - `simulated_at` (string | null, required): The moment the simulation pretends it is, so date rules such as a refund window give the same result every run. Null to run at the real time.
  - `source_conversation_id` (string | null, required): Id of the real conversation the simulation was made from (starts with conv_). Null when it was written by hand.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
- `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/ai/agents/{agent}/simulations' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "action_mocks": null,
      "agent_id": "<string>",
      "assertions": null,
      "created_at": "2026-11-01T09:30:00Z",
      "draft_history": {
        "passed": 123,
        "runs": [
          {}
        ],
        "state": "passing",
        "total": 123,
        "window": 123
      },
      "draft_result": null,
      "id": "<string>",
      "live_history": {
        "passed": 123,
        "runs": [
          {}
        ],
        "state": "passing",
        "total": 123,
        "window": 123
      },
      "live_result": null,
      "messages": null,
      "name": "<string>",
      "object": "<string>",
      "persona": null,
      "scenario": "<string>",
      "simulated_at": "2026-11-01T09:30:00Z",
      "source_conversation_id": "<string>",
      "updated_at": "2026-11-01T09:30:00Z"
    }
  ],
  "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)
