Get memory
Get a memory by ID
GET
/
v3
/
memories
/
{id}
Copy
Ask AI
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const memory = await client.memories.get('id');
console.log(memory.id);
Copy
Ask AI
{
"id": "acxV5LHMEsG2hMSNb4umbn",
"customId": "mem_abc123",
"title": "Introduction to Machine Learning",
"summary": "A comprehensive guide to understanding the basics of machine learning and its applications.",
"metadata": {
"source": "web",
"category": "technology",
"tag_1": "ai",
"tag_2": "machine-learning",
"readingTime": 5,
"isPublic": true
},
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"status": "done",
"url": "https://example.com/article",
"content": "This is a detailed article about machine learning concepts...",
"type": "text",
"source": "web",
"ogImage": "https://example.com/image.jpg",
"raw": "This is a detailed article about machine learning concepts...",
"containerTags": [
"user_123",
"project_123"
],
"connectionId": "conn_123",
"tokenCount": 1000
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Response
200
application/json
Successfully retrieved memory
Memory object
Was this page helpful?
Copy
Ask AI
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const memory = await client.memories.get('id');
console.log(memory.id);
Copy
Ask AI
{
"id": "acxV5LHMEsG2hMSNb4umbn",
"customId": "mem_abc123",
"title": "Introduction to Machine Learning",
"summary": "A comprehensive guide to understanding the basics of machine learning and its applications.",
"metadata": {
"source": "web",
"category": "technology",
"tag_1": "ai",
"tag_2": "machine-learning",
"readingTime": 5,
"isPublic": true
},
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"status": "done",
"url": "https://example.com/article",
"content": "This is a detailed article about machine learning concepts...",
"type": "text",
"source": "web",
"ogImage": "https://example.com/image.jpg",
"raw": "This is a detailed article about machine learning concepts...",
"containerTags": [
"user_123",
"project_123"
],
"connectionId": "conn_123",
"tokenCount": 1000
}
Assistant
Responses are generated using AI and may contain mistakes.