GET /openapi/memorylake/api/v2/projects/{id}/memories/{memoryId}/trace
Path Parameters
Project ID
Memory ID to trace
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v2/projects/proj-a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6/memories/mem-123/trace' \
-H 'Authorization: Bearer sk_xxxxxx'
Response
Show Memory trace
Show Memory trace
Memory ID
Current memory content
Array of change history entries
Show Trace entry
Show Trace entry
History entry ID
Event type (e.g.
ADD, UPDATE, DELETE)Memory content after this change
Whether the memory was expired at this point
Timestamp of the change
Associated event ID
Original conversation messages that triggered this change
{
"success": true,
"data": {
"memory_id": "mem-123",
"current_memory": "User prefers Hangzhou cuisine restaurants",
"trace": [
{
"history_id": "19135a2d-2cc6-45db-bfc7-959d8fc117b2",
"event_type": "ADD",
"new_memory": "User prefers Hangzhou cuisine restaurants",
"expired": false,
"changed_at": "2024-01-15T10:00:00Z",
"event_id": "batch-637d4f2ded6243feb926e5cf15f69b97",
"source_messages": [
{
"role": "user",
"content": "What restaurants do you recommend in Hangzhou?",
"timestamp": 1705312800
},
{
"role": "assistant",
"content": "I recommend trying Grandma's Kitchen for Hangzhou cuisine.",
"timestamp": 1705312800
}
]
}
]
}
}