API Documentation

Quick Start

Get your memory-powered application running in minutes:

Step 1: Create your account and get API keys
1. Click "Get Started" above to create your account
2. Choose your plan (Free: 3 profiles, no credit card required)  
3. Get your API keys from the signup confirmation

Production Key: sk_live_abc123...
Test Key: sk_test_def456...
Step 2: Start storing memories
curl -X POST https://friendlist.ai/api/memory \
  -H "Content-Type: application/json" \
  -H "X-API-Key: sk_live_abc..." \
  -d '{
    "userId": "user123",
    "data": "User loves spicy food and prefers morning meetings"
  }'
Step 3: Retrieve organized memories
curl -X GET https://friendlist.ai/api/memory/user123 \
  -H "X-API-Key: sk_live_abc..."
Response:
{
  "userId": "user123",
  "core": {
    "preferences": {
      "food": ["spicy food"],
      "meetings": ["morning meetings"]
    }
  },
  "domains": {
    "food": { "dietary_preferences": "spicy" },
    "work": { "meeting_preference": "morning" }
  }
}