Skip to main content

API Overview

LanOnasis API Reference​

The LanOnasis API provides authenticated memory storage and semantic retrieval for applications and AI agents.

Base URL​

https://api.lanonasis.com

The TypeScript client accepts this origin as apiUrl. Endpoint-specific examples below include the public API route prefix where required.

Authentication​

Use one of the supported authentication methods:

X-API-Key: lano_your_api_key
Authorization: Bearer your_oauth_access_token

API keys may carry personal, team, or enterprise memory context. The service enforces the corresponding read boundary on context-aware memory query paths. See Authentication and Vendor Key Management.

Quick start​

TypeScript​

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

const client = createMemoryClient({
apiUrl: 'https://api.lanonasis.com',
apiKey: process.env.LANONASIS_API_KEY,
});

const created = await client.createMemory({
title: 'Release decision',
content: 'Deploy only after the production smoke test passes.',
memory_type: 'context',
tags: ['release'],
});

const matches = await client.searchMemories({
query: 'production smoke test',
limit: 5,
});

cURL​

curl -X POST 'https://api.lanonasis.com/api/v1/memories/search' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $LANONASIS_API_KEY" \
-d '{"query":"production smoke test","limit":5}'

Memory operations​

OperationMethod and routeGuide
Create memoryPOST /api/v1/memoriesMemory endpoints
List memoriesGET /api/v1/memories/listMemory endpoints
Get memoryGET /api/v1/memories/{id}Memory endpoints
Update memoryPOST /api/v1/memories/update (id in the body)Memory endpoints
Delete memoryPOST /api/v1/memories/delete?id={id}Memory endpoints
Search memoriesPOST /api/v1/memories/searchSearch

PUT /api/v1/memories/{id} and DELETE /api/v1/memories/{id} are not write routes: nginx sends every method on that path to the read endpoint, so both return the memory unchanged while answering 200. Use the POST /update and POST /delete forms above. See Memory endpoints for the full route list.

The canonical OpenAPI assets used by the API playground are generated from the repository's memory API specification.

Errors and limits​

Failed requests return an HTTP status and a structured error response. Handle the status code first, then use the response code and message for application behavior. See Error Codes.

Request limits depend on the account policy in effect. Applications should honor rate-limit response headers and retry only after the indicated interval; contact support for current plan limits rather than relying on hardcoded documentation values.

Supported clients​

  • TypeScript/JavaScript: @lanonasis/memory-client
  • Command line: @lanonasis/cli, invoked as onasis
  • Protocol: REST and MCP

See SDKs and Libraries for the maintained client documentation. Language pages that describe planned or experimental clients are not a production availability guarantee.

Support​

Last verified: July 18, 2026