# List AI action calls

```http
GET https://trydimmi.com/api/v1/ai/action-calls
```

## Authorization

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

## Query parameters

- `conversation_id` (string): Only calls in this conversation (conv_...).
- `action_id` (string): Only calls of this action (aac_...).
- `state` (string): awaiting_confirmation (the customer), pending_approval (the team), approved, declined, expired, canceled, running, succeeded or failed.
- `cursor` (string): Leave out for the first page. To read the next page, pass the next_cursor the previous page returned.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `action_id` (string, required): Id of the action that was called, such as aac_... Send it wherever an action is asked for.
  - `action_version_id` (string | null, required): Id of the published version of the action that ran, such as aacv_... Null when no version is recorded.
  - `approval` (string, required): Who on the team had to approve the call: none, teammate or admin.
  - `cancel_reason` (string | null, required): Why the call was canceled: customer (the customer declined to confirm) or superseded (the agent proposed a newer write). Null when not canceled.
  - `completed_at` (string | null, required): When the call finished or was canceled. Null while it still waits or runs.
  - `confirmation` (string, required): Whether the customer had to confirm the call: none or customer.
  - `confirmed_at` (string | null, required): When the customer confirmed the call. Null when no confirmation was asked or it has not been given.
  - `connection_id` (string, required): Id of the connection the call went through, such as acn_...
  - `conversation_id` (string | null, required): Id of the conversation the call was made in, such as conv_... Null for a call made outside a conversation, such as a test.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `customer_message` (string | null, required): The message the agent passes on to the customer after a teammate declined the call. Null when none was written.
  - `decided_at` (string | null, required): When a teammate approved or declined the call. Null when no approval was needed or none has been given.
  - `decided_by_member_id` (string | null, required): Id of the teammate who approved or declined the call, such as mem_... Null when nobody decided.
  - `decision_reason` (string | null, required): The teammate's internal reason for approving or declining, never shown to the customer. Null when none was given.
  - `error_code` (string | null, required): Why the call failed, such as auth_failed, not_found, upstream_rejected, rate_limited, unavailable, host_blocked or response_too_large. Null when it did not fail.
  - `expires_at` (string | null, required): When a call waiting for verification, confirmation or approval lapses. Null once it no longer waits.
  - `http_status` (integer | null, required): HTTP status the workspace's API answered with, such as 200 or 404. Null when no answer was received.
  - `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` (any): The arguments the model gave, frozen when the call was proposed. Left out unless the caller may read payloads.
  - `latency_ms` (integer | null, required): How long the request took, in milliseconds. Null when nothing was sent.
  - `message_id` (string | null, required): Id of the agent's message that told the customer about the call, such as msg_... Null when there is none.
  - `mode` (string, required): Whether the call was real or a trial: live for a call in a conversation, test for a test of the action.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `reported_at` (string | null, required): When the customer was told how the call ended, or it was settled that nobody needs to be told. Null until then.
  - `request` (any): The request that was sent, as JSON. Left out unless the caller may read payloads.
  - `requested_at` (string, required): When the agent asked for the call.
  - `response` (any): What the workspace's API or MCP server answered, as JSON. Left out unless the caller may read payloads.
  - `result` (any): The shaped result the model read: only the mapped response fields, or an error and message. Left out unless the caller may read payloads.
  - `run_id` (string | null, required): Id of the agent run that asked for the call, such as air_... Null when there is none.
  - `sent_at` (string | null, required): When the request was sent. Null when nothing has been sent yet.
  - `side_effect` (string, required): Whether the call only reads data (read) or changes something (write).
  - `state` (string, required): Where the call stands: awaiting_verification, awaiting_confirmation, pending_approval, approved, declined, expired, canceled, running, succeeded or failed.
  - `summary` (string, required): Plain sentence of what the call will do, built from the checked arguments. This is what a customer confirms or a teammate approves.
  - `title` (string, required): The action's short name at the time of the call, such as Refund an order.
  - `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/action-calls' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "action_id": "<string>",
      "action_version_id": "<string>",
      "approval": "<string>",
      "cancel_reason": "<string>",
      "completed_at": "2026-11-01T09:30:00Z",
      "confirmation": "<string>",
      "confirmed_at": "2026-11-01T09:30:00Z",
      "connection_id": "<string>",
      "conversation_id": "<string>",
      "created_at": "2026-11-01T09:30:00Z",
      "customer_message": "<string>",
      "decided_at": "2026-11-01T09:30:00Z",
      "decided_by_member_id": "<string>",
      "decision_reason": "<string>",
      "error_code": "<string>",
      "expires_at": "2026-11-01T09:30:00Z",
      "http_status": 123,
      "id": "<string>",
      "input": null,
      "latency_ms": 123,
      "message_id": "<string>",
      "mode": "<string>",
      "object": "<string>",
      "reported_at": "2026-11-01T09:30:00Z",
      "request": null,
      "requested_at": "2026-11-01T09:30:00Z",
      "response": null,
      "result": null,
      "run_id": "<string>",
      "sent_at": "2026-11-01T09:30:00Z",
      "side_effect": "<string>",
      "state": "<string>",
      "summary": "<string>",
      "title": "<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)
