> For the complete documentation index, see [llms.txt](https://dnotifier.gitbook.io/product-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dnotifier.gitbook.io/product-docs/reference/chat-methods.md).

# Chat methods

Methods for retrieving and deleting persisted chat history. Realtime delivery uses `send()` — see [Realtime methods](/product-docs/reference/realtime-methods.md).

## Methods

| Method                       | Server code | Description                                         |
| ---------------------------- | ----------- | --------------------------------------------------- |
| `fetchChatHistory()`         | `201`       | Request conversation history for given participants |
| `deleteChatHistoryMessage()` | `202`       | Delete a single stored chat message                 |

## `saveHistory` flag

`send()` accepts `saveHistory` (default `true`). Set `saveHistory: false` for ephemeral messages that should not appear in history queries.

## Language pages

* [**JavaScript / TypeScript**](/product-docs/reference/chat-methods/javascript-typescript.md)
* [**Dart / Flutter**](/product-docs/reference/chat-methods/dart-flutter.md)

## Related

* [Chat overview](/product-docs/chat/overview.md)
* [Save history flag](/product-docs/chat/save-history.md)
