Knowledge
The Knowledge API provides access to structured knowledge compiled from processed memories. As memories are processed, Memsolus builds a categorized knowledge base per user — accessible here as paginated entries or a single merged Markdown profile.
Knowledge entries require the hasKnowledgeGraph entitlement on your plan.
Endpoint Overview
| Method | Path | Permission | Description |
|---|---|---|---|
GET | /v1/knowledge | knowledge.read | List knowledge entries or get merged profile |
GET | /v1/knowledge/:id | knowledge.read | Get a single knowledge entry by ID |
Knowledge Entry Object
| Field | Type | Description |
|---|---|---|
id | string | UUID of the knowledge entry |
user_id | string | User this knowledge belongs to |
category | string | Knowledge category (e.g., tech_stack, preferences) |
content | string | Compiled Markdown content for this category |
version | number | Incremented each time this entry is recompiled |
created_at | string | ISO 8601 creation timestamp |
updated_at | string | ISO 8601 last-update timestamp |
Each (workspaceId, userId, category) combination is unique — there is exactly one entry per category per user per workspace.
List Knowledge
/v1/knowledgeList knowledge entries or get a single merged profile
| Parameter | Type | Description |
|---|---|---|
user_id | string | Filter knowledge entries by user |
category | string | Filter by knowledge category (e.g., `tech_stack`, `preferences`) |
search | string | Full-text search within knowledge content |
merged | boolean | When `true`, returns a single merged Markdown profile across all categories instead of a paginated list (default: false) |
page | number | Page number, starting at 1 (default: 1) |
page_size | number | Results per page, max 100 (default: 20) |
Get Merged Knowledge Profile
Setting merged=true returns a single unified object with all knowledge categories concatenated into one Markdown document. This is the recommended way to inject full user context at the start of a conversation.
The version in the merged response is the sum of all individual entry versions, reflecting the total number of recompilation cycles across categories.
Get Knowledge Entry
/v1/knowledge/:idGet a single knowledge entry by ID
Returns 404 KNOWLEDGE_NOT_FOUND if the entry does not exist or does not belong to the current workspace.