Memory API
Hierarchical durable memory — read, write, and monitor memory across scopes.
Memory API
The Memory API provides access to Steadybase's hierarchical durable memory system — reading entries, writing new memories, browsing the tree, and monitoring health.
Endpoints
Memory Tree
Returns the full memory hierarchy organized by scope.
Response:
Read Memory
Read a specific memory entry.
Parameters:
| Parameter | Type | Description |
|---|---|---|
scope | string | Memory scope: org, team, worker, session |
key | string | Memory key identifier |
Example:
Response:
Write Memory
Write or update a memory entry.
Request:
Response:
If the key already exists, the value is updated and the version is incremented.
Memory Health
Returns memory health metrics for a specific worker.
Parameters:
| Parameter | Type | Description |
|---|---|---|
workerId | string | Worker ID (e.g., sarah-ae-west) |
Response:
Memory Scopes
| Scope | Access | Persistence | Use Case |
|---|---|---|---|
org | All users | Permanent | Company-wide facts, ICP, strategy |
team | Team members | Permanent | Territory maps, campaigns, playbooks |
worker | Per worker | Permanent (with compression) | Account history, research, patterns |
session | Per session | Session only | Temporary conversation context |
Auto-Compression
Unpinned entries older than 24 hours are automatically compressed during periodic compression runs. Pinned entries are never compressed.
To prevent a memory from being compressed, set pinned: true when writing.