Skip to main content

Remember

Store new memories via the remember endpoint.

Overview

The remember endpoint stores a new memory. Trix automatically generates embeddings and indexes the content for semantic search.

For complete parameter documentation, response schemas, and advanced options, see the Memories API Reference.

Endpoint

Endpoint
POST /v1/memories

Example

const memory = await client.memories.create({
  content: 'User prefers dark mode and compact view',
  sessionId: '<session-uuid>',
  spaceId: '<space-uuid>',
  tags: ['ui_settings', 'onboarding'],
  metadata: {
    category: 'ui_settings',
    source: 'onboarding'
  }
});
console.log('Stored:', memory.id);