LanOnasis API Reference
Welcome to the LanOnasis Memory-as-a-Service API documentation. Our REST API allows you to integrate powerful memory management and semantic search capabilities into your applications.
Base URL
Production: https://api.lanonasis.com/v1
Sandbox: https://sandbox-api.lanonasis.com/v1
Authentication
All API requests require authentication using API keys. Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Quick Start
# Create a memory
curl -X POST https://api.lanonasis.com/v1/memories \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Meeting Notes",
"content": "Discussed project timeline and deliverables",
"tags": ["meeting", "project"],
"metadata": {
"date": "2024-01-15",
"participants": ["john", "jane"]
}
}'
API Endpoints
🧠 Memory Management
POST /memories
- Create a new memoryGET /memories/{id}
- Retrieve a memoryPUT /memories/{id}
- Update a memoryDELETE /memories/{id}
- Delete a memoryGET /memories
- List memories with pagination
🔍 Search & Discovery
GET /search
- Semantic search across memoriesPOST /search/vector
- Vector similarity searchGET /search/suggestions
- Search autocomplete
🔐 Authentication
POST /auth/keys
- Create API keyGET /auth/keys
- List API keysDELETE /auth/keys/{id}
- Revoke API key
📊 Analytics
GET /analytics/usage
- Usage statisticsGET /analytics/search
- Search analytics
Response Format
All API responses follow a consistent format:
{
"success": true,
"data": {
// Response data here
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}
Error Handling
Error responses include detailed information:
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid request parameters",
"details": {
"field": "title",
"issue": "Title is required"
}
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"request_id": "req_123456789"
}
}
Rate Limits
Plan | Requests/minute | Requests/hour | Storage |
---|---|---|---|
Free | 100 | 1,000 | 10MB |
Pro | 1,000 | 10,000 | 1GB |
Enterprise | 10,000 | 100,000 | Unlimited |
SDKs & Libraries
We provide official SDKs for popular programming languages: