# pw ai chats get

> Source: https://parallelworks.com/docs/cli/pw/ai/chats/get

## pw ai chats get

Get an AI chat

### Synopsis

The **pw ai chats get** command retrieves a chat and displays its messages.

```
pw ai chats get <id> [flags]
```

### Examples

```
  # View a chat
  pw ai chats get abc-123
  
  # View as JSON
  pw ai chats get -o json abc-123
```

### Options

```
  -h, --help            help for get
  -o, --output string   Output format (text, json) (default "text")
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw ai chats](/docs/cli/pw/ai/chats)	 - Manage AI chats
