GET
/
v1
/
memories
/
{memory_id}
# To use the Python SDK, install the package:
# pip install mem0ai

from mem0 import MemoryClient
client = MemoryClient(api_key="your_api_key", org_id="your_org_id", project_id="your_project_id")

memory = client.get(memory_id="<memory_id>")
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "memory": "<string>",
  "user_id": "<string>",
  "agent_id": "<string>",
  "app_id": "<string>",
  "run_id": "<string>",
  "hash": "<string>",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Path Parameters

memory_id
string
required

The unique identifier of the memory to retrieve

Response

200
application/json
Successfully retrieved the memory
id
string

Unique identifier for the memory

memory
string

The content of the memory

user_id
string

Identifier of the user associated with this memory

agent_id
string | null

The agent ID associated with the memory, if any

app_id
string | null

The app ID associated with the memory, if any

run_id
string | null

The run ID associated with the memory, if any

hash
string

Hash of the memory content

metadata
object

Additional metadata associated with the memory

created_at
string

Timestamp of when the memory was created

updated_at
string

Timestamp of when the memory was last updated