MemoryKit

Memories

Store, manage, and retrieve memories — the core storage unit in MemoryKit.

Memories are the core storage unit. Each memory holds content that gets chunked, embedded, and indexed for retrieval. Smart Ingestion automatically extracts title, tags, language, and content type.

Create a memory

POST /v1/memories — Returns 202 Accepted. Content is processed asynchronously.

const memory = await mk.memories.create({
  content: "Meeting notes from Q4 planning...",
  title: "Q4 Planning Notes",
  type: "meeting",
  tags: ["planning", "q4"],
  metadata: { department: "engineering" },
  userId: "user_123",
});

Parameters

ParameterTypeRequiredDescription
contentstringYesThe text content to store
titlestringNoTitle for the memory (auto-extracted if omitted)
typestringNoContent type (auto-detected if omitted)
tagsstring[]NoTags for filtering (auto-extracted if omitted)
metadataobjectNoArbitrary key-value metadata
userIdstringNoAssociate with a specific user

List memories

GET /v1/memories — Cursor-based pagination. Filter by status, type, or user.

const list = await mk.memories.list({
  limit: 20,
  status: "completed",
  userId: "user_123",
});
 
// list.data — Memory[]
// list.has_more — boolean

Delete a memory

DELETE /v1/memories/:id — Soft delete. Returns 204.

await mk.memories.delete("memory_uuid");

On this page