MemoryKit

Create Memory

Store a new memory. Content is processed asynchronously.

Request body

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

Response

Returns 202 Accepted with the memory object.

{
  "id": "mem_abc123",
  "status": "processing",
  "content": "Meeting notes from Q4 planning...",
  "title": "Q4 Planning Notes",
  "tags": ["planning", "q4"],
  "created_at": "2025-01-15T10:30:00Z"
}
const memory = await mk.memories.create({
  content: "Meeting notes from Q4 planning...",
  title: "Q4 Planning Notes",
  tags: ["planning", "q4"],
});

On this page