Skip to main content

Welcome to MemSync

This quickstart guide will help you integrate MemSync into your application and start building personalized AI experiences. You’ll learn how to store memories, search for relevant context, and retrieve user profiles.

Prerequisites

Before getting started, make sure you have:
  • A MemSync account and API key
  • Basic knowledge of REST APIs
  • Your preferred programming language setup (Python, JavaScript, curl, etc.)

Authentication

MemSync uses API key-based authentication for all API requests. You’ll need to include your API key in the X-API-Key header:
Coming Soon: OAuth 2.0 authentication will be available for enhanced security and easier integration with third-party applications.

Step 1: Store Your First Memory

Let’s start by storing a conversation that MemSync will process to extract meaningful memories:

Step 2: Search for Relevant Memories

Now let’s search for memories related to the user’s interests:

Step 3: Get User Profile

Retrieve the user’s complete profile with auto-generated bio and insights:

Understanding the Response

When you search for memories, MemSync returns:

Key Fields:

  • user_bio: Auto-generated summary of the user
  • memory: The extracted fact or memory
  • categories: Organized tags (career, interests, etc.)
  • type: semantic (lasting facts) or episodic (time-bound events)
  • vector_distance: Similarity score for search relevance
  • rerank_score: Enhanced relevance score when reranking is enabled

Next Steps

Now that you’ve made your first API calls, explore these advanced features:

Memory Categories

Learn how memories are organized into categories like work, hobbies, and relationships

Integration Setup

Import data from social media, documents, and chat platforms

API Reference

Explore all available endpoints and advanced features

Best Practices

Learn optimization techniques for memory storage and retrieval

Example: Building a Personalized Chatbot

Here’s a complete example of how to build a chatbot that remembers user context:
This example shows the basic pattern: search for context, generate response, store conversation. MemSync handles the complex memory extraction and organization automatically.

Common Issues

Make sure your API key is valid and included in the X-API-Key header as X-API-Key: YOUR_API_KEY.
It may take a few seconds for memories to be processed and indexed. Try searching again, or check that your conversation contained meaningful information.
MemSync has rate limits to ensure service quality. If you hit limits, implement exponential backoff in your retry logic.
Ready to dive deeper? Check out our Core Concepts or explore the full API reference.