Skip to main content

LanOnasis API Reference

Welcome to the LanOnasis API documentation. Our REST API provides complete access to the Memory-as-a-Service platform with comprehensive endpoints for memory management, search, analytics, and real-time features. 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

https://api.lanonasis.com/api/v1
Production: https://api.lanonasis.com/api/v1
Sandbox: https://sandbox-api.lanonasis.com/api/v1

Authentication

All API requests require authentication. Use an API key header for key-based auth or a bearer token for OAuth/JWT:

X-API-Key: lano_your_api_key_here
Authorization: Bearer YOUR_TOKEN (OAuth/JWT)
Content-Type: application/json

Quick Start

curl -H "X-API-Key: lano_your_api_key_here" \
https://api.lanonasis.com/api/v1/memories

Quick Start

Get started with our API in minutes:

import { createMemoryClient } from '@lanonasis/memory-client/core';

const client = createMemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: 'your-api-key'
});

// Create a memory
const created = await client.createMemory({
title: 'Project Notes',
content: 'Important project notes',
metadata: { project: 'web-app' },
tags: ['work', 'important']
});

if (created.data) {
console.log('Memory ID:', created.data.id);
}

// Search memories
const results = await client.searchMemories({
query: 'project notes',
limit: 10
});

console.log('Matches:', results.data?.results);
# Create a memory
curl -X POST https://api.lanonasis.com/api/v1/memories \
-H "X-API-Key: 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

🔍 Search & Discovery

🔐 Authentication

📊 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

PlanRequests/minuteRequests/hourStorage
Free1001,00010MB
Pro1,00010,0001GB
Enterprise10,000100,000Unlimited

SDKs & Libraries

We provide official SDKs for popular programming languages:

Getting Help

Core Memory Operations

Search & Discovery

Batch Operations

  • POST /batch - Perform multiple operations in a single request

Real-time Features

Analytics & Monitoring

Response Format

All API responses follow a consistent format:

Success Response

{
"success": true,
"data": {
// Response data here
},
"metadata": {
"request_id": "req_1234567890",
"timestamp": "2024-01-15T10:30:00Z"
}
}

Error Response

{
"success": false,
"error": {
"code": "ERROR_CODE",
"message": "Human-readable error message",
"details": {
// Additional error details
}
}
}

Rate Limits

TierRequests/MinuteRequests/HourBurst Limit
Free601,000100
Pro30010,000500
EnterpriseCustomCustomCustom

SDKs & Libraries

We provide official SDKs for popular languages:

  • TypeScript/JavaScript: @lanonasis/memory-client
  • Python: lanonasis-python
  • CLI: lanonasis-cli

View all SDKs →

Interactive API Explorer

Try our API directly in your browser with our interactive explorer:

Open API Explorer →

Support

Need help? We're here to assist:

  • Documentation: Browse our comprehensive guides
  • Community: Join our Discord community
  • Support: Contact our support team
  • Status: Check our system status

Get Support →

Next Steps

  1. Get your API key
  2. Create your first memory
  3. Try semantic search
  4. Explore our SDKs