> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Attention List Chats: Inputs, Cost & CLI Example

> List Chats. Attention Attention List Chats docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=attention_list_chats:{}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                         | Type      | Required | Default | Description                                                        |
| ---------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------ |
| `payload.filter`             | `object`  | No       |         | Filter by external ID (exact match)                                |
| `payload.from_date_time`     | `string`  | No       |         | Start of date range filter (ISO 8601 format)                       |
| `payload.to_date_time`       | `string`  | No       |         | End of date range filter (ISO 8601 format)                         |
| `payload.exclude_transcript` | `boolean` | No       | `false` | If true, omit transcript data from response to reduce payload size |
| `payload.page`               | `integer` | No       | `1`     | Page number for pagination (starts from 1)                         |
| `payload.size`               | `integer` | No       | `10`    | Number of items per page (min 1, max 50)                           |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Returns a paginated list of chats with optional filters. Org-level API keys return all chats; user-level keys return only chats accessible to the user.",
    "properties": {
      "filter": {
        "type": "object",
        "description": "Filter by external ID (exact match)",
        "properties": {
          "external_id": {
            "type": "string",
            "description": "Filter by external ID (exact match)"
          },
          "type": {
            "type": "string",
            "description": "Filter by chat type (chat or email)",
            "enum": [
              "chat",
              "email"
            ]
          },
          "title": {
            "type": "string",
            "description": "Filter by title (case-insensitive partial match)"
          },
          "participant_name": {
            "type": "string",
            "description": "Filter by participant name (case-insensitive partial match)"
          },
          "scorecard_id": {
            "type": "array",
            "description": "Filter by scorecard UUID(s) — returns chats evaluated with any of the given scorecards",
            "items": {
              "type": "string"
            }
          },
          "user_id": {
            "type": "array",
            "description": "Filter by user UUID(s)",
            "items": {
              "type": "string"
            }
          },
          "team_id": {
            "type": "array",
            "description": "Filter by team UUID(s)",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "from_date_time": {
        "type": "string",
        "description": "Start of date range filter (ISO 8601 format)",
        "format": "date-time"
      },
      "to_date_time": {
        "type": "string",
        "description": "End of date range filter (ISO 8601 format)",
        "format": "date-time"
      },
      "exclude_transcript": {
        "type": "boolean",
        "description": "If true, omit transcript data from response to reduce payload size",
        "default": false
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination (starts from 1)",
        "default": 1,
        "minimum": 1
      },
      "size": {
        "type": "integer",
        "description": "Number of items per page (min 1, max 50)",
        "default": 10,
        "minimum": 1,
        "maximum": 50
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Unique identifier of the chat"
                },
                "externalId": {
                  "type": "string",
                  "description": "External identifier from the source system"
                },
                "applicationName": {
                  "type": "string",
                  "description": "Name of the application that created the chat"
                },
                "title": {
                  "type": "string",
                  "description": "Title of the chat"
                },
                "type": {
                  "type": "string",
                  "description": "Type of chat (chat or email)",
                  "enum": [
                    "chat",
                    "email"
                  ]
                },
                "userId": {
                  "type": "string",
                  "description": "UUID of the user who owns the chat"
                },
                "teamId": {
                  "type": "string",
                  "description": "UUID of the team the chat belongs to"
                },
                "participants": {
                  "type": "array",
                  "description": "List of chat participants",
                  "items": {
                    "type": "object",
                    "properties": {
                      "externalId": {
                        "type": "string",
                        "description": "External identifier of the participant"
                      },
                      "name": {
                        "type": "string",
                        "description": "Display name of the participant"
                      },
                      "email": {
                        "type": "string",
                        "description": "Email address of the participant"
                      },
                      "participantType": {
                        "type": "string",
                        "description": "Type of participant",
                        "enum": [
                          "prospect",
                          "user",
                          "bot"
                        ]
                      },
                      "userUuid": {
                        "type": "string",
                        "description": "UUID of the associated user (if applicable)"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "transcript": {
                  "type": "array",
                  "description": "Chat transcript entries (omitted when exclude_transcript=true)",
                  "items": {
                    "type": "object",
                    "properties": {
                      "sentence": {
                        "type": "string",
                        "description": "The text content of the transcript entry"
                      },
                      "author": {
                        "type": "string",
                        "description": "Name of the author"
                      },
                      "authorEmail": {
                        "type": "string",
                        "description": "Email address of the author"
                      },
                      "datetime": {
                        "type": "string",
                        "description": "Timestamp of the transcript entry",
                        "format": "date-time"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "dateStart": {
                  "type": "string",
                  "description": "When the chat started",
                  "format": "date-time"
                },
                "createdAt": {
                  "type": "string",
                  "description": "When the chat record was created",
                  "format": "date-time"
                }
              },
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageCount": {
                "type": "integer"
              },
              "totalRecords": {
                "type": "integer"
              },
              "pageNumber": {
                "type": "integer"
              },
              "pageSize": {
                "type": "integer"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute attention_list_chats --payload '{}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.
* Billing mode: `no_bill`.
