friendlist API Documentation
Store and retrieve user information with intelligent memory processing. Our enhanced API automatically organizes information to help you build more personalized and understanding applications.
Getting Started
What is friendlist?
friendlist is an intelligent memory system for applications. Instead of just storing data, it understands and organizes information to help you build better user experiences.
🧠 Smart Memory Processing
Automatically organize and categorize user information for better recall.
🔍 Intelligent Retrieval
Find relevant information quickly with semantic search capabilities.
Quick Start
Get started with friendlist in 4 simple steps:
Install
Initialize
Remember
Recall
🎉 That's it. Your app now has memory.
friendlist organizes information and helps you build better user experiences.
Installation Examples
Store Different Types of Information
Retrieve with Context
💡 Pro Tip
Start simple with basic remember() and recall(). Add advanced options only when you need fine-grained control.
How It Works
Deep dive into friendlist's API endpoints and parameters
Core Endpoints
POST /api/remember
Purpose: Store information about a user with automatic content analysis and classification
GET /api/recall
Purpose: Retrieve stored information about a user with intelligent filtering and ranking
Parameters Reference
Domain Detection
Automatic categorization into:
- shopping: Products, prices, brands, sizes
- health: Medical terms, symptoms, medications
- work: Projects, meetings, deadlines
- education: Learning, courses, topics
- social: Relationships, interactions
- finance: Money, payments, budgets
- travel: Locations, bookings, trips
- food: Meals, restaurants, dietary
- general: Everything else
Temporal Detection
Content analysis determines lifespan:
- Time-specific phrases ("tomorrow", "3pm") → Fast decay
- Search queries ("looking for") → Normal decay
- Stated preferences ("I prefer") → Slow decay
- Critical info (allergies) → Never decay
Strength Calculation
Automatic importance scoring:
- Critical keywords (allergy, emergency) → 100
- Preferences ("I love", "I hate") → 70-90
- Actions (purchased, subscribed) → 50-70
- Browsing (viewed, clicked) → 20-40
Privacy Zones
Automatic privacy classification:
- Private: Medical, financial, passwords
- Protected: Work, family, personal
- Public: General preferences, activities
💡 Best Practice
Start with simple remember(userId, content) calls and only add advanced parameters when you need specific control over classification or behavior.
API Reference
Authentication
Include your API key in the X-API-Key header with every request.
Get your API keys from the dashboard after creating an account.
POST /api/remember
Store information about a user with intelligent processing and categorization.
string - Unique identifier for the user
string | object | array - Information to store:
"allergic to peanuts"- { purchase: "shoes", size: 10, brand: "Nike" }
- [ { text: "Hi there!" }, { text: "How can I help?" } ]
Response
GET /api/recall
Retrieve stored information about a user.
string - User to get information for
string - Search for specific content
number - Number of results to return (default: 10)
Response
Use Cases
Real-world examples of how to integrate friendlist into your applications
Customer Support 🎧
"Support tickets that solve themselves"
Understanding interaction patterns across all touchpoints, not just ticket logs.
What you could build:
- Pattern detection across disconnected channels
- Solution effectiveness scoring from outcomes
- Emotional context preservation between agents
Healthcare ⚕️
"Medical apps that never forget critical information"
Living medical memory that understands relationships between symptoms, treatments, and outcomes.
What you could build:
- Allergy detection from conversation patterns
- Anxiety indicators from appointment behaviors
- Treatment effectiveness from subtle feedback
Education 🎓
"Learning that adapts to each student's mind"
Understanding learning patterns across subjects and time from interaction behaviors.
What you could build:
- Confidence tracking without test scores
- Learning style detection from interaction patterns
- Knowledge gap identification from hesitation patterns
E-commerce 🛒
"Stores where nothing is ever lost"
Understanding intent, hesitation, and decision patterns across fragmented shopping interactions.
What you could build:
- Intent understanding from browse patterns
- Hesitation detection at micro-moments
- Size confidence from return patterns
Chat Apps 💬
"Conversations that continue forever without storing messages"
Preserving understanding and context while messages vanish - perfect memory without storage.
What you could build:
- Context continuity without message history
- Expertise tracking from discussion patterns
- Relationship depth from interaction quality
Social Platforms 👥
"Social apps that understand relationships, not just connections"
Understanding relationship dynamics and authentic engagement from behavior patterns.
What you could build: