Retrieve memory history.
Try it now
Test
RAM authorization
Request syntax
GET /workspace/{workspace}/memorystore/{memoryStoreName}/memory/{memoryId}/history HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
Workspace name. |
workspace-test |
| memoryStoreName |
string |
Yes |
Memory store name. |
test-memory-store |
| memoryId |
string |
Yes |
Memory ID. |
019ca1e5-7307-7d50-b943-5e628326a8ed |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response data. |
||
| requestId |
string |
Request ID. |
3B311FD9-A60B-55E0-A896-A0C73********* |
| results |
array<object> |
Return value. |
|
|
array<object> |
Return value. |
||
| id |
string |
Memory ID. |
b25d6ad7-306f-4040-9890-4dddd2505a2e |
| memoryId |
string |
Memory ID. |
019cacf6-7b39-7f61-8314-548f07ca449a |
| input |
array<object> |
Original message. |
|
|
object |
Message. |
||
| role |
string |
Message sender role. |
user |
| content |
string |
Message content. |
My name is Zhang San and I live in Hangzhou. |
| newMemory |
string |
New memory. |
I really like Python. |
| userId |
string |
User ID. |
test_session_001 |
| event |
string |
Event type. |
ADD |
| createdAt |
string |
Creation time. |
1764556182850 |
| updatedAt |
string |
Update time. |
1771036123785 |
| oldMemory |
string |
Old memory. |
I really don't like Python at all. |
| metadata |
object |
Metadata. |
{"sessionId":"test_session_001"} |
Examples
Success response
JSON format
{
"requestId": "3B311FD9-A60B-55E0-A896-A0C73*********",
"results": [
{
"id": "b25d6ad7-306f-4040-9890-4dddd2505a2e",
"memoryId": "019cacf6-7b39-7f61-8314-548f07ca449a",
"input": [
{
"role": "user",
"content": "My name is Zhang San and I live in Hangzhou."
}
],
"newMemory": "I really like Python.",
"userId": "test_session_001",
"event": "ADD",
"createdAt": "1764556182850",
"updatedAt": "1771036123785",
"oldMemory": "I really don't like Python at all.",
"metadata": {
"sessionId": "test_session_001"
}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.