---
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

---

[API](https://skmtc.dev/exh/apis/ex-human.md) · [All operations](https://skmtc.dev/exh/apis/ex-human/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/exh/ex-human/revisions/cd3ee850caf2/schema)
