---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# segmentstream agent chats

Count the agent's chats with people per UTC day, channel and audience (guest, member, unpaired or group), with the messages people wrote, the agent's turns and the questions it recorded as unanswered. \`chats list\` lists the chats themselves

## Usage

Command syntax

```
segmentstream agent chats [OPTIONS] [COMMAND] [ARGS]...
```

## Options

- `--since ISO`

  Window start; 7 days before --until by default

- `--until ISO`

  Window end; now by default; at most 92 days

- `--workspace UUID`

  Override the linked workspace

- `--output [table|json]`

  Output format \[default: table]

- `--api-url URL`

  SegmentStream control-plane origin

- `--help`

  Show this message and exit.

## Subcommands

[**segmentstream agent chats list**List the agent's chats as its chat registry records them, most recent message first: title, kind, channel, chat ID, members and last message](https://segmentstream.com/docs/cli/agent/chats/list)

[Read as Markdown ↗](https://segmentstream.com/docs/cli/agent/chats.md)
