List Memory Versions
Lists historical versions of a memory store in reverse creation order. The current memory does not need to exist.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
/memory_stores/{memory_store_id}/memory_versionsPath parameters
memory_store_idstringRequiredMemory store ID
Query parameters
memory_idstringOptionalOnly returns versions of this memory; omit to return versions of the whole store
operationcreated / modified / deletedOptionalFilters by the operation that produced the version
created_at.gtestringOptionalLower bound of the version creation time (inclusive), ISO 8601 UTC
created_at.ltestringOptionalUpper bound of the version creation time (inclusive), ISO 8601 UTC
viewbasic / fullOptionalbasic excludes bodies (default); full returns unredacted bodies
limitintegerOptionalPage size. basic: 1-100, default 20; full: 1-20
pagestringOptionalPagination cursor. Keep all query conditions and limit unchanged when paging
Response fields
dataarray<object>Array of versions; bodies are included when view=full and not redacted
idstringVersion ID, in the format memver_xxx
typestringAlways memory_version
memory_store_idstringID of the memory store it belongs to
memory_idstringID of the corresponding memory
operationcreated / modified / deletedThe operation that produced the version
pathstringPath in the version snapshot
contentstringBody of the version; absent when redacted
content_sha256stringSHA256 hash of the version body
content_size_bytesintegerUTF-8 byte length of the version body
redacted_atstring | nullTime when the body was redacted; omitted or null when not redacted
created_atstringVersion creation time, ISO 8601 UTC
next_pagestring | nullCursor for the next page; absent when there is no more data
Request example
curl "$AGENTSTUDIO_URL/memory_stores/memstore_xxx/memory_versions" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response example
{
"data": [
{
"id": "memver_xxx",
"type": "memory_version",
"memory_store_id": "memstore_xxx",
"memory_id": "mem_xxx",
"operation": "modified",
"path": "/notes/project.md",
"content": "# Project Conventions\nThe default development environment is staging.\nChanges require regression tests.\n",
"content_sha256": "a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
"content_size_bytes": 68,
"created_at": "2026-09-17T08:30:00Z"
}
],
"next_page": null
}
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | invalid_request_error | Invalid parameters, path, limit, or pagination cursor |
| 401 | InvalidApiKey | API key missing, invalid, or expired |
| 403 | permission_error | Insufficient identity or resource access permissions |
| 404 | not_found_error | Resource does not exist or does not belong to the current workspace |