curl --request GET \
--url https://api.memcontext.in/api/memories/{id}/history \
--header 'X-API-Key: <api-key>'{
"current": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"content": "<string>",
"source": "mcp",
"isCurrent": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"category": "preference",
"project": "<string>",
"supersedesId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rootId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"history": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"content": "<string>",
"source": "mcp",
"isCurrent": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"category": "preference",
"project": "<string>",
"supersedesId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rootId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}Returns the current version of a memory and all previous versions in its version chain. Use this to inspect how a memory evolved over time.
curl --request GET \
--url https://api.memcontext.in/api/memories/{id}/history \
--header 'X-API-Key: <api-key>'{
"current": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"content": "<string>",
"source": "mcp",
"isCurrent": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"category": "preference",
"project": "<string>",
"supersedesId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rootId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
},
"history": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "<string>",
"content": "<string>",
"source": "mcp",
"isCurrent": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"category": "preference",
"project": "<string>",
"supersedesId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rootId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"validFrom": "2023-11-07T05:31:56Z",
"validUntil": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
]
}API key created from the MemContext dashboard. Keys are prefixed with mc_.
Memory UUID.
Current version and version history.
Hide child attributes
Where the memory originated.
mcp - Saved via MCP tool.web - Saved from the dashboard.api - Saved via REST API (default).openclaw - Saved via OpenClaw integration.mcp, web, api, openclaw Whether this is the current version of this memory.
Version number in the chain (starts at 1).
preference - User likes or dislikes (e.g. "prefers dark mode").fact - Objective information (e.g. "uses macOS").decision - Choices made (e.g. "chose PostgreSQL for DB").context - Background information (e.g. "working on e-commerce app").preference, fact, decision, context ID of the memory this version superseded.
ID of the original memory in the version chain.
ISO 8601 datetime after which this memory is considered expired.
Previous versions in the chain, ordered by version number.
Hide child attributes
Where the memory originated.
mcp - Saved via MCP tool.web - Saved from the dashboard.api - Saved via REST API (default).openclaw - Saved via OpenClaw integration.mcp, web, api, openclaw Whether this is the current version of this memory.
Version number in the chain (starts at 1).
preference - User likes or dislikes (e.g. "prefers dark mode").fact - Objective information (e.g. "uses macOS").decision - Choices made (e.g. "chose PostgreSQL for DB").context - Background information (e.g. "working on e-commerce app").preference, fact, decision, context ID of the memory this version superseded.
ID of the original memory in the version chain.
ISO 8601 datetime after which this memory is considered expired.