memories

GET /v1/memories/{memory_id}/history/

Changed on

Retrieve the history of a memory.

Request

  • Base URL
    https://api.mem0.ai
  • URL
    https://api.mem0.ai/v1/memories/{memory_id}/history/
  • Auth
    API key in header Authorization

Path parameters

memory_idstring uuid required

The unique identifier of the memory to retrieve.

Response

Successfully retrieved the memory history.

idstring uuid required

Unique identifier for the history entry.

memory_idstring uuid required

Unique identifier of the associated memory.

old_memorystring nullable

The previous state of the memory, if applicable

new_memorystring required

The new or updated state of the memory

user_idstring required

The identifier of the user associated with this memory

agent_idstring nullable

The identifier of the agent associated with this memory, if any.

app_idstring nullable

The identifier of the app associated with this memory, if any.

session_idstring nullable

The run identifier associated with this memory, returned as session_id.

categoriesstring[] nullable

Categories associated with the memory at this point in its history

event'ADD' | 'UPDATE' | 'DELETE' required

The type of event that occurred

previous_embedding_qwenstring nullable

Previous internal embedding representation (Qwen model), if applicable

embedding_qwenstring nullable

Internal embedding representation (Qwen model), if available

metadataobject nullable

Additional metadata associated with the memory change

created_atstring date-time required

The timestamp when this history entry was created.

updated_atstring date-time required

The timestamp when this history entry was last updated.

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status