---
title: "Retrieve Agent Memory"
method: GET
path: "/v1/agents/{agent_id}/core-memory"
tags: ["agents"]
---

# Retrieve Agent Memory

`GET /v1/agents/{agent_id}/core-memory`

Retrieve the memory state of a specific agent.
This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.

## Path parameters

- `agent_id` string, required

## Response `200`

Successful Response

- Memory — Represents the in-context memory (i.e. Core memory) of the agent. This includes both the `Block` objects (labelled by sections), as well as tools to edit the blocks.
  - `agent_type` union — Agent type controlling prompt rendering.
    - 'memgpt_agent' | 'memgpt_v2_agent' | 'letta_v1_agent' | 'react_agent' | 'workflow_agent' | 'split_thread_agent' | 'sleeptime_agent' | 'voice_convo_agent' | 'voice_sleeptime_agent' — Enum to represent the type of agent.
    - string
  - `blocks` Block[], required — Memory blocks contained in the agent's in-context memory
    - `value` string, required — Value of the block.
    - `limit` integer — Character limit of the block.
    - `project_id` string, nullable — The associated project id.
    - `name` string, nullable — The id of the template.
    - `is_template` boolean — Whether the block is a template (e.g. saved human/persona options).
    - `base_template_id` string, nullable — The base template id of the block.
    - `deployment_id` string, nullable — The id of the deployment.
    - `entity_id` string, nullable — The id of the entity within the template.
    - `preserve_on_migration` boolean, nullable — Preserve the block on template migration.
    - `label` string, nullable — Label of the block (e.g. 'human', 'persona') in the context window.
    - `read_only` boolean — Whether the agent has read-only access to the block.
    - `description` string, nullable — Description of the block.
    - `metadata` object, nullable — Metadata of the block.
    - `hidden` boolean, nullable — If set to True, the block will be hidden.
    - `id` string — The human-friendly ID of the Block
    - `created_by_id` string, nullable — The id of the user that made this Block.
    - `last_updated_by_id` string, nullable — The id of the user that last updated this Block.
  - `file_blocks` FileBlock[] — Special blocks representing the agent's in-context memory of an attached file
    - `value` string, required — Value of the block.
    - `limit` integer — Character limit of the block.
    - `project_id` string, nullable — The associated project id.
    - `name` string, nullable — The id of the template.
    - `is_template` boolean — Whether the block is a template (e.g. saved human/persona options).
    - `base_template_id` string, nullable — The base template id of the block.
    - `deployment_id` string, nullable — The id of the deployment.
    - `entity_id` string, nullable — The id of the entity within the template.
    - `preserve_on_migration` boolean, nullable — Preserve the block on template migration.
    - `label` string, nullable — Label of the block (e.g. 'human', 'persona') in the context window.
    - `read_only` boolean — Whether the agent has read-only access to the block.
    - `description` string, nullable — Description of the block.
    - `metadata` object, nullable — Metadata of the block.
    - `hidden` boolean, nullable — If set to True, the block will be hidden.
    - `id` string — The human-friendly ID of the Block
    - `created_by_id` string, nullable — The id of the user that made this Block.
    - `last_updated_by_id` string, nullable — The id of the user that last updated this Block.
    - `file_id` string, required — Unique identifier of the file.
    - `source_id` string, required — Unique identifier of the source.
    - `is_open` boolean, required — True if the agent currently has the file open.
    - `last_accessed_at` string, date-time, nullable — UTC timestamp of the agent’s most recent access to this file. Any operations from the open, close, or search tools will update this field.
  - `prompt_template` string — Deprecated. Ignored for performance.

## Other responses

- `422` — Validation Error

## Changes

- **2025-09-24** `68c3c741b873` — 1 warning
  - added the new `letta_v1_agent` enum value to the `agent_type/anyOf[subschema #1: AgentType]/` response property for the response status `200`

[Change history](https://skmtc.dev/yu-code666/apis/letta-api/changes/v1/agents/:agent_id/core-memory/get.md)

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
