---
title: "Save assistant chat history"
method: PUT
path: "/v1/assistant-chat/history"
tags: ["Assistant Chat"]
---

# Save assistant chat history

`PUT /v1/assistant-chat/history`

Replaces the current user-scoped assistant chat history (ephemeral session context).

## Request body

- SaveAssistantChatHistoryDto
  - `messages` AssistantChatMessageDto[], required
    - `id` string, required
    - `role` 'user' | 'assistant', required
    - `text` string, required
    - `createdAt` number, required — Unix epoch millis

## Response `200`

## Changes

- **2026-03-05** `946edaa856a9` — 1 warning
  - deleted the `header` request parameter `X-Organization-Id`

[Change history](https://skmtc.dev/om-network/apis/betayum-api/changes/v1/assistant-chat/history/put.md)

---

[API](https://skmtc.dev/om-network/apis/betayum-api.md) · [All operations](https://skmtc.dev/om-network/apis/betayum-api/llms.txt) · [OpenAPI document](https://skmtc.dev/om-network/apis/betayum-api/revisions/9dbc609fc132?raw)
