Adding Memories
Learn how to add content to Supermemory
-
Content Organization
- Use
userId
for partitioning- Always provide a
userId
to partition data - Makes searching and filtering much faster
- Essential for multi-user applications
- Always provide a
- Smart Metadata
- Use consistent keys across similar content
- Keep values simple (strings, numbers, booleans)
- Don’t nest objects in metadata
- Use
-
Performance Tips
-
Batch Operations
- Add multiple items in parallel
- Use different
userId
s for different spaces - Don’t wait for processing to complete unless needed
-
Search Optimization
-
-
URL Content
- Send clean URLs without tracking parameters
- Use article URLs, not homepage URLs
- Check URL accessibility before sending
Basic Usage
To add a memory, send a POST request to /add
with your content:
The API will return a response with an ID and initial status:
Adding Web Content
To add content from a webpage, simply provide the URL:
Metadata and Organization
You can add rich metadata to organize your content:
Partitioning by user
You can attribute and partition your data by providing a userId
:
When searching, if you provide a userId
, only memories from that space will be returned.
Checking Status
Check status using the memory ID:
Memories are deleted after 2 minutes if an irrecoverable error occurs.
Next Steps
Explore more advanced features in our API Reference.