Prerequisites
- A MemoryLake account with an API key (see Authentication)
curlinstalled (or any HTTP client)
All examples use the base URL
https://app.memorylake.ai/openapi/memorylake. Replace YOUR_API_KEY with your actual API key in every request.End-to-End Walkthrough
1
Get your API key
Log in to the MemoryLake Console and generate an API key from your account settings. You will use this key in the
Authorization header for all API calls.2
Create a workspace
A workspace is the top-level container for all your data. Create one to get started.Save the workspace
Response
id — you will need it in subsequent steps.3
Create an actor
An actor represents a participant in conversations. Create one for the human user whose memory you want to track.
Response
4
Create a project
A project is a knowledge container within a workspace. It holds documents, conversations, and the facts extracted from them.
Response
5
Create a conversation and append messages
Submit a conversation to the workspace. First, create the conversation, then add messages one at a time. MemoryLake automatically extracts structured facts from the messages.Create the conversation:Append the first message (user):Append the second message (assistant):
Response
After you submit messages, MemoryLake processes them asynchronously. Facts are typically available within a few seconds.
6
Search your memories
Search across the workspace to find the facts that MemoryLake extracted from the conversation.MemoryLake automatically extracted structured facts from the conversation and associated them with Jane’s actor. These facts persist and are searchable across the workspace.
Response
Complete Python Example
Here is the full flow in a single Python script:quickstart.py
What You Built
In just a few minutes, you:- Created a workspace to isolate your data
- Created an actor to represent a human user
- Created a project to hold your knowledge
- Submitted a conversation with messages
- Searched and retrieved the automatically extracted facts
Next Steps
Workspaces & Projects
Learn when to use multiple workspaces vs. multiple projects
Actors & Memory
Understand how per-user memory works across projects
Memory Pipeline
Dive deeper into how conversations become structured facts
API Reference
Explore the full API for workspaces, actors, projects, and search