---
title: "Get agent memories"
method: GET
path: "/api/memory/{agentId}/memories"
tags: ["memory"]
---

# Get agent memories

`GET /api/memory/{agentId}/memories`

Retrieve all memories for a specific agent

## Path parameters

- `agentId` string, uuid, required

## Query parameters

- `tableName` string
- `includeEmbedding` boolean
- `channelId` string, uuid
- `roomId` string, uuid

## Response `200`

Agent memories retrieved successfully

- object
  - `success` boolean
  - `data` object
    - `memories` Memory[]
      - `id` string, uuid — Unique identifier for the memory
      - `entityId` string, uuid — ID of the entity associated with this memory
      - `agentId` string, uuid — ID of the agent associated with this memory
      - `roomId` string, uuid — ID of the room this memory belongs to
      - `createdAt` integer — Unix timestamp when the memory was created
      - `content` Content
        - `text` string — Text content of the message
        - `thought` string — Agent's internal thought process
        - `plan` string — Agent's plan or reasoning
        - `actions` string[] — Actions the agent wants to take
        - `source` string — Source of the message
        - `inReplyTo` string, uuid — ID of the message this is in reply to

## Other responses

- `400` — Invalid agent ID
- `404` — Agent not found
- `500` — Error retrieving memories

---

[API](https://skmtc.net/elizaos/apis/eliza-os-api.md) · [All operations](https://skmtc.net/elizaos/apis/eliza-os-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elizaos/eliza-os-api/revisions/f43280bfdb0c/schema)
