Documentation

Everything you need to integrate RecallBricks into your AI applications.

Quick Start

1. Get Your API Key

Sign up and get your API key from the dashboard

export RECALLBRICKS_API_KEY="your_api_key_here"

2. Install SDK

Python:

pip install recallbricks

TypeScript/JavaScript:

npm install recallbricks

3. Create Your First Memory

from recallbricks import RecallBricks

rb = RecallBricks(api_key="your_api_key_here")

memory = rb.create_memory(
    text="User prefers dark mode UI",
    source="user_preferences",
    tags=["ui", "preferences"]
)

print(f"Created memory: {memory['id']}")

4. Search Memories

results = rb.search(
    query="What are the user's UI preferences?",
    limit=5
)

for result in results:
    print(f"{result['score']:.2f} - {result['text']}")

API Reference

POST/v1/memories

Create a new memory

curl -X POST https://api.recallbricks.com/v1/memories \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "text": "Memory content here",
    "source": "app_name",
    "tags": ["tag1", "tag2"]
  }'
GET/v1/memories/search

Search memories using semantic search

curl "https://api.recallbricks.com/v1/memories/search?query=user+preferences&limit=10" \
  -H "X-API-Key: your_api_key_here"
POST/v1/memories/context

Get AI-generated context from memories

curl -X POST https://api.recallbricks.com/v1/memories/context \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "query": "Summarize user preferences",
    "limit": 10
  }'
POST/v1/memories/batch

Create multiple memories at once

curl -X POST https://api.recallbricks.com/v1/memories/batch \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your_api_key_here" \
  -d '{
    "memories": [
      {"text": "Memory 1", "source": "import"},
      {"text": "Memory 2", "source": "import"}
    ]
  }'

SDKs & Libraries

Python SDK

Install: pip install recallbricks

View on GitHub →

TypeScript/JavaScript SDK

Install: npm install recallbricks

View on GitHub →

Need Help?

Join our community or reach out to our support team