Capi

Introduction

Build applications that truly remember and understand your users.

What is Capi?

Capi is a powerful memory API that enables your AI applications to store, retrieve, and search through user memories using semantic search.

  • Store memories - Save user interactions, preferences, and context
  • Retrieve context - Find relevant memories using semantic search
  • Scale seamlessly - From hobby projects to enterprise applications

Key Features

  • 🧠 Semantic Search - Find memories based on meaning, not just keywords
  • Fast Performance - Low-latency retrieval for real-time applications
  • 🔐 Secure - API key authentication with project isolation
  • 📊 Analytics - Built-in usage tracking and performance monitoring
  • 🎯 Developer-Friendly - Simple REST API with comprehensive documentation

Quick Example

// Store a memory
await fetch('https://your-convex-deployment.convex.site/addMemory', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-CAPI-API-Key': 'your-api-key'
  },
  body: JSON.stringify({
    userId: 'user-123',
    text: 'User prefers dark mode and uses React for frontend development',
    metadata: { category: 'preferences' }
  })
});

// Retrieve relevant memories
const response = await fetch('https://your-convex-deployment.convex.site/retrieveContext', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-CAPI-API-Key': 'your-api-key'
  },
  body: JSON.stringify({
    userId: 'user-123',
    query: 'What UI framework does the user like?',
    limit: 3
  })
});

Next Steps

  1. API Reference - Detailed endpoint documentation
  2. Get Started - Create your first project and API key