列出记忆
GET/v1/memory_stores/{memory_store_id}/memories
列出记忆
Parameters
Returns
列出记忆
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.memorystores.memories.MemoryListPage;
import com.anthropic.models.beta.memorystores.memories.MemoryListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
MemoryListPage page = client.beta().memoryStores().memories().list("memory_store_id");
}
}Response 200
{
"data": [
{
"id": "mem_011CZkZ9X2dpNyB6YbtxvB6e",
"content_sha256": "ba7936d94c84d948a2232088f78228f175df6a8353b2d5bc9228eee5794a0024",
"content_size_bytes": 28,
"created_at": "2026-03-15T10:00:00Z",
"memory_store_id": "memstore_01Wf3kQ8tZxB2mVr7HcJ4aNd",
"memory_version_id": "memver_011CZkZBJq5dWxk9fVLNcPht",
"path": "/preferences/formatting.md",
"type": "memory",
"updated_at": "2026-03-15T10:00:00Z",
"content": null
}
],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}Returns Examples
Response 200
{
"data": [
{
"id": "mem_011CZkZ9X2dpNyB6YbtxvB6e",
"content_sha256": "ba7936d94c84d948a2232088f78228f175df6a8353b2d5bc9228eee5794a0024",
"content_size_bytes": 28,
"created_at": "2026-03-15T10:00:00Z",
"memory_store_id": "memstore_01Wf3kQ8tZxB2mVr7HcJ4aNd",
"memory_version_id": "memver_011CZkZBJq5dWxk9fVLNcPht",
"path": "/preferences/formatting.md",
"type": "memory",
"updated_at": "2026-03-15T10:00:00Z",
"content": null
}
],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}