Everything you need to integrate RecallBricks into your AI applications.
Test API endpoints interactively with live examples and code snippets
Get started in 5 minutes with our simple integration guide
Complete REST API documentation with all endpoints and parameters
Official SDKs for Python, TypeScript, and JavaScript
Sign up and get your API key from the dashboard
export RECALLBRICKS_API_KEY="your_api_key_here"
Python:
pip install recallbricks
TypeScript/JavaScript:
npm install recallbricks
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']}")results = rb.search(
query="What are the user's UI preferences?",
limit=5
)
for result in results:
print(f"{result['score']:.2f} - {result['text']}")/v1/memoriesCreate 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"]
}'/v1/memories/searchSearch 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"
/v1/memories/contextGet 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
}'/v1/memories/batchCreate 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"}
]
}'