# List a company's conversations

```http
GET https://trydimmi.com/api/v1/companies/{company}/conversations
```

## Authorization

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

## Path parameters

- `company` (string, required): Id of the company, starting with cmp_, such as cmp_01jx2m8k4t. Find it with GET /companies.

## Query parameters

- `limit` (string): How many items to return in one page, such as 25.
- `cursor` (string): Leave out for the first page. To read the next page, pass the next_cursor the previous page returned.
- `q` (string): Words to search for, such as refund.

## Response 200 (OK)

- `data` (object[] | null, required): The items of this page, as a list; empty when nothing matches.
  - `ai_handoff_reason` (string | null, required): Why the AI agent stepped aside, such as customer_requested, unknown, max_replies, frustration, safety or human_replied. Null when it has not handed off.
  - `ai_pending_approvals` (integer, required): How many of the AI agent's actions in this conversation are waiting for a teammate to approve them.
  - `ai_reply_count` (integer, required): How many replies the AI agent has sent in this conversation.
  - `ai_state` (string, required): Who may speak next: off (the AI agent is not in it), active (the agent answers) or handed_off (only humans from now on).
  - `assignee` (object, required)
    - `avatar_url` (string | null, required): Address of the teammate's picture, or null when they have none.
    - `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.
    - `name` (string, required): The teammate's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `assignment_wait` (object, required)
    - `reason` (string, required): Why the conversation waits for an assignee: no_available_member or all_at_capacity.
    - `since` (string, required): When the conversation started waiting for an assignee.
  - `channel` (object, required)
    - `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.
    - `name` (string, required): The name the team gave this channel connection.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `type` (string, required): The kind of channel: widget, email, api, slack, whatsapp, facebook or instagram.
  - `closed_at` (string | null, required): When the conversation was closed. Null when it has never been closed.
  - `contact` (object, required)
    - `avatar_url` (string | null, required): URL of the contact's picture. Null when they have none.
    - `email` (string | null, required): The contact's email address. Null when unknown.
    - `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.
    - `kind` (string, required): How well the contact is known: user when your app identified them, lead for anyone else.
    - `name` (string | null, required): The contact's name. Null when unknown.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
    - `timezone` (string | null, required): The contact's IANA time zone, such as Europe/Berlin, for reading times in their local time. Null when unknown.
  - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `first_customer_message_at` (string | null, required): When the customer first wrote in this conversation. Null when they have not written yet.
  - `first_reply_at` (string | null, required): When the customer got their first reply. Null when nobody has replied yet.
  - `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.
  - `inbox` (object, required)
    - `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.
    - `name` (string, required): Display name of the inbox, team or member this short form stands for.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `last_activity_at` (string | null, required): When anything last happened in the conversation. Null when nothing has yet.
  - `last_message` (object, required)
    - `author` (object, required)
      - `avatar_url` (string | null, required): Link to the author's picture. Null when they have none.
      - `id` (string | null, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
      - `name` (string, required): The author's name as shown on the entry.
      - `type` (string, required): Who wrote the entry: contact, member, agent (the AI), system or integration.
    - `created_at` (string, required): When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
    - `excerpt` (string, required): Start of the message as plain text, cut to 140 characters with a trailing … when longer. Empty when the message has no body.
    - `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.
    - `type` (string, required): Kind of timeline entry: message, note or event.
  - `last_message_at` (string | null, required): When the latest message was written. Null when there are no messages.
  - `message_count` (integer, required): How many messages the conversation holds.
  - `number` (integer, required): The human reference number, such as 1042 for #1042. Unique within the workspace and never reused.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `priority` (string, required): How urgent the conversation is: none, low, medium, high or urgent.
  - `snoozed_until` (string | null, required): When a snoozed conversation wakes and reopens. Null unless status is snoozed.
  - `spam` (boolean, required): True when the conversation is marked as spam. A flag beside status, so unmarking it restores where it stood.
  - `status` (string, required): Where the conversation stands: open (needs the team), snoozed (until snoozed_until) or closed.
  - `subject` (string | null, required): The conversation's subject line. Null when it has none.
  - `tags` (object[] | null, required): The tags on the conversation, each with its id and name. Empty when it has none.
    - `color` (string | null, required): The tag's color as a hex value, such as #ff5500, kept as the workspace wrote it; null when it has none.
    - `icon` (string | null, required): Name of the tag's icon; null when it has none.
    - `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.
    - `name` (string, required): The tag's name.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `team` (object, required)
    - `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.
    - `name` (string, required): Display name of the inbox, team or member this short form stands for.
    - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `unread` (boolean, required): True when the conversation has something the calling member has not read. Judged for the caller, not for the whole team.
  - `updated_at` (string, required): When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
  - `viewers` (object[]): The teammates looking at the conversation right now, each with id, name and avatar. Present only when the list asked for viewers.
    - `avatar_url` (string | null, required): Web address of the viewing teammate's picture. Null when not given.
    - `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.
    - `name` (string, required): Name of the teammate currently viewing the conversation.
  - `waiting_since` (string | null, required): Since when the customer has waited for an answer: their latest message is newer than the latest reply. Null when nobody waits or it is closed.
- `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/companies/{company}/conversations' \
  --header 'Authorization: Bearer <token>'
```

## Example response

```json
{
  "data": [
    {
      "ai_handoff_reason": "<string>",
      "ai_pending_approvals": 123,
      "ai_reply_count": 123,
      "ai_state": "<string>",
      "assignee": {
        "avatar_url": "<string>",
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      },
      "assignment_wait": {
        "reason": "<string>",
        "since": "2026-11-01T09:30:00Z"
      },
      "channel": {
        "id": "<string>",
        "name": "<string>",
        "object": "<string>",
        "type": "<string>"
      },
      "closed_at": "2026-11-01T09:30:00Z",
      "contact": {
        "avatar_url": "<string>",
        "email": "<string>",
        "id": "<string>",
        "kind": "<string>",
        "name": "<string>",
        "object": "<string>",
        "timezone": "<string>"
      },
      "created_at": "2026-11-01T09:30:00Z",
      "first_customer_message_at": "2026-11-01T09:30:00Z",
      "first_reply_at": "2026-11-01T09:30:00Z",
      "id": "<string>",
      "inbox": {
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      },
      "last_activity_at": "2026-11-01T09:30:00Z",
      "last_message": {
        "author": {
          "avatar_url": "<string>",
          "id": "<string>",
          "name": "<string>",
          "type": "<string>"
        },
        "created_at": "2026-11-01T09:30:00Z",
        "excerpt": "<string>",
        "id": "<string>",
        "object": "<string>",
        "type": "<string>"
      },
      "last_message_at": "2026-11-01T09:30:00Z",
      "message_count": 123,
      "number": 123,
      "object": "<string>",
      "priority": "<string>",
      "snoozed_until": "2026-11-01T09:30:00Z",
      "spam": true,
      "status": "<string>",
      "subject": "<string>",
      "tags": [
        {
          "color": "<string>",
          "icon": "<string>",
          "id": "<string>",
          "name": "<string>",
          "object": "<string>"
        }
      ],
      "team": {
        "id": "<string>",
        "name": "<string>",
        "object": "<string>"
      },
      "unread": true,
      "updated_at": "2026-11-01T09:30:00Z",
      "viewers": [
        {
          "avatar_url": "<string>",
          "id": "<string>",
          "name": "<string>"
        }
      ],
      "waiting_since": "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)
