Skip to main content
This guide walks you through the core MemoryLake workflow using the API. By the end, you will have created a workspace, submitted a conversation, and searched the extracted memories.

Prerequisites

  • A MemoryLake account with an API key (see Authentication)
  • curl installed (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.
Response
Save the workspace 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
Bind the actor to your workspace so MemoryLake can associate facts with this actor across all projects in the workspace. See Bind Actor for details.
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:
Response
Append the first message (user):
Append the second message (assistant):
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.
Response
MemoryLake automatically extracted structured facts from the conversation and associated them with Jane’s actor. These facts persist and are searchable across the workspace.

Complete Python Example

Here is the full flow in a single Python script:
quickstart.py

What You Built

In just a few minutes, you:
  1. Created a workspace to isolate your data
  2. Created an actor to represent a human user
  3. Created a project to hold your knowledge
  4. Submitted a conversation with messages
  5. Searched and retrieved the automatically extracted facts
MemoryLake handled the hard part — parsing the conversation, identifying facts, associating them with the right actor, and indexing everything for search.

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