# Get a procedure simulation

```http
GET https://trydimmi.com/api/v1/procedures/{procedure}/test-cases/{test_case}
```

## Authorization

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

## Path parameters

- `procedure` (string, required): Id of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.
- `test_case` (string, required): Id of the procedure simulation, starting with prct_, such as prct_01jx2m8k4t. Find it with GET /procedures/{procedure}/test-cases.

## Response 200 (OK)

- `data` (object, required)
  - `action_mocks` (any, required): What each mocked action answers, as a JSON object keyed by action, each with an HTTP status and a body.
  - `assertions` (any, required): What must hold after the simulated conversation, as a JSON array of checks, such as a procedure match, an action call, a branch taken, a handover or reply text.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `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.
  - `last_result` (any, required): How its last run went, as a JSON object with passed, ran_at, turns, assertion_results and, on a broken run, error. Null when it never ran.
  - `messages` (any, required): The scripted customer messages of the test, in order, as a JSON array; each has text and an optional confirm.
  - `name` (string, required): Name of the test, 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 of the test, as a JSON object with fields such as name, email, verified, channel, attributes and company.
  - `procedure_id` (string, required): Id of the procedure the test belongs to (starts with prc_).
  - `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 test 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 test 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.

## 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/procedures/{procedure}/test-cases/{test_case}' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": {
    "action_mocks": null,
    "assertions": null,
    "created_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "last_result": null,
    "messages": null,
    "name": "<string>",
    "object": "<string>",
    "persona": null,
    "procedure_id": "<string>",
    "scenario": "<string>",
    "simulated_at": "2026-11-01T09:30:00Z",
    "source_conversation_id": "<string>",
    "updated_at": "2026-11-01T09:30:00Z"
  }
}
```

---

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