﻿---
title: stack kb security-ai-assistant-api find-conversations cli command
description: Get conversations Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://docs-v3-preview.elastic.dev/elastic/cli/pull/480/cli/stack/kb/security-ai-assistant-api/find-conversations
---

# stack kb security-ai-assistant-api find-conversations cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb security-ai-assistant-api find-conversations [options]
```

Get conversations
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--fields string">
    A list of fields to include in the response. If omitted, all fields are returned.
  </definition>
  <definition term="--filter string">
    A search query to filter the conversations. Can match against titles, messages, or other conversation attributes.
  </definition>
  <definition term="--sort-field string">
    The field by which to sort the results. Valid fields are `created_at`, `title`, and `updated_at`.
  </definition>
  <definition term="--sort-order string">
    The order in which to sort the results. Can be either `asc` for ascending or `desc` for descending.
  </definition>
  <definition term="--page number">
    The page number of the results to retrieve. Default is 1.
  </definition>
  <definition term="--per-page number">
    The number of conversations to return per page. Default is 20.
  </definition>
  <definition term="--[no-]is-owner">
    Whether to return conversations that the current user owns. If true, only conversations owned by the user are returned.
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--[no-]dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--[no-]json">
    output as JSON
  </definition>
</definitions>