GET
/
api
/
memory
/
{agentId}
/
memories
Get agent memories
curl --request GET \
  --url http://localhost:3000/api/memory/{agentId}/memories
{
  "success": true,
  "data": {
    "memories": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "roomId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": 123,
        "content": {
          "text": "<string>",
          "thought": "<string>",
          "plan": "<string>",
          "actions": [
            "<string>"
          ],
          "source": "<string>",
          "inReplyTo": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      }
    ]
  }
}

Path Parameters

agentId
string
required

ID of the agent

Query Parameters

tableName
string
default:messages

Table name to query

includeEmbedding
boolean
default:false

Include embedding vectors in response

channelId
string

Filter by channel ID

roomId
string

Filter by room ID

Response

200
application/json

Agent memories retrieved successfully

The response is of type object.