---
title: "Get Long-Term Memory"
method: GET
path: "/chatbot/v3/memory"
tags: ["chatbot"]
---

# Get Long-Term Memory

`GET /chatbot/v3/memory`

Retrieves the long-term memory for a chat. Note:
- Memory is only available when both bot_profile.id and user_profile.id are present
- Memory is only collected when chat_settings.enable_memory is True in chat requests
- Memory starts accumulating only after 20 messages in a chat

## Query parameters

- `bot_id` string, required
- `user_id` string, required

## Headers

- `X-Request-Id` string

## Response `200`

Successful Response

- MemoryResponseSchema — B2B only
  - `memory` string, required — Bot's memory.

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-04** `079926482089` — 1 breaking
  - for the `header` request parameter `X-Request-Id`, default value was changed from `ef234956-3166-4352-9102-7073e82b7b98` to `9b4ab7fe-03a6-4da5-a838-62fe54cf59d6`

[Change history](https://skmtc.dev/exh/apis/ex-human/changes/chatbot/v3/memory/get.md)

---

[API](https://skmtc.dev/exh/apis/ex-human.md) · [All operations](https://skmtc.dev/exh/apis/ex-human/llms.txt) · [OpenAPI document](https://skmtc.dev/exh/apis/ex-human/revisions/079926482089?raw)
