Seizn.

API Documentation

Everything you need to integrate Seizn into your applications. Add persistent memory to your AI with just a few lines of code.

Quick Start

Get your API key from the dashboard, then start making requests:

bash
# Add a memory
curl -X POST https://seizn.com/api/memories \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"content": "User prefers dark mode interfaces"}'

# Search memories
curl "https://seizn.com/api/memories?query=user+preferences" \
  -H "Authorization: Bearer YOUR_API_KEY"

Authentication

All API requests require an API key passed in the Authorization: Bearer header.

bash
curl -H "Authorization: Bearer szn_your_api_key_here" \
  https://seizn.com/api/memories?query=test

Security: Keep your API keys secret. Never expose them in client-side code. Use environment variables or a backend proxy.

API Endpoints

POST/api/memories

Add a new memory to the user's memory store.

Request Body

content-string (required)
memory_type-string - fact, preference, experience, relationship, instruction
tags-string[]
namespace-string (default: "default")
scope-string - user, session, agent
session_id-string
agent_id-string

Response

{
  "success": true,
  "memory": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "content": "User prefers dark mode interfaces",
    "memory_type": "preference",
    "tags": ["ui", "settings"],
    "namespace": "default",
    "created_at": "2026-01-08T10:30:00Z"
  }
}
GET/api/memories

Search memories using semantic similarity.

Query Parameters

query-string (required)
limit-number (default: 10, max: 100)
threshold-number 0-1 (default: 0.7)
namespace-string

Response

{
  "success": true,
  "results": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "content": "User prefers dark mode interfaces",
      "memory_type": "preference",
      "tags": ["ui", "settings"],
      "similarity": 0.89
    }
  ],
  "count": 1
}
DELETE/api/memories

Delete memories by their IDs.

Query Parameters

ids-string (required) - comma-separated

Response

{
  "success": true,
  "deleted": 3
}
POST/api/extract

Extract and store memories from a conversation using AI.

Request Body

conversation-string (required)
model-string - haiku | sonnet (default: haiku)
auto_store-boolean (default: true)
namespace-string (default: "default")

Response

{
  "message": "Extracted 3 memories, stored 3",
  "extracted": [
    {
      "content": "User is a software developer working with Python",
      "memory_type": "fact",
      "tags": ["profession", "programming"],
      "confidence": 0.95,
      "importance": 7
    }
  ],
  "stored": [...]
}
POST/api/query

Get AI-generated responses using relevant memories as context (RAG).

Request Body

query-string (required)
model-string - haiku | sonnet (default: haiku)
top_k-number (default: 5)
namespace-string
include_memories-boolean (default: true)

Response

{
  "response": "Based on your preferences, I'd recommend using VS Code with a dark theme...",
  "memories_used": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "content": "User prefers dark mode interfaces",
      "similarity": 0.85
    }
  ],
  "model_used": "haiku"
}

Rate Limits

PlanMonthly API CallsMax MemoriesAPI Keys
Free1,0001002
Starter50,0005,0003
Plus500,00050,0005
Pro2,000,000Unlimited10
EnterpriseUnlimitedUnlimited100

When you exceed your rate limit, the API returns a 429 Too Many Requests response.

Error Codes

CodeDescription
200Success
400Bad Request - Missing or invalid parameters
401Unauthorized - Invalid or missing API key
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Something went wrong

Security & Governance

Data Security

  • βœ“Encryption at rest: All data encrypted with AES-256
  • βœ“Encryption in transit: TLS 1.3 for all connections
  • βœ“Tenant isolation: Complete data separation between accounts

API Key Management

  • βœ“Key rotation: Rotate keys anytime from the dashboard
  • βœ“Key expiration: Auto-expire keys after 90 days (configurable)
  • βœ“Usage tracking: Monitor per-key usage in real-time

Data Retention & Deletion

  • βœ“Export: Export all your data anytime via API or dashboard
  • βœ“Deletion: Hard delete with no retention after 30 days
  • βœ“GDPR/CCPA: Full compliance with data subject rights

SDKs

Python

bash
pip install seizn
python
from seizn import Seizn

client = Seizn(api_key="your_api_key")

# Add memory
client.add("User prefers dark mode")

# Search
results = client.search("preferences")

# Extract from conversation
client.extract(conversation="...")

JavaScript

bash
npm install seizn
javascript
import { Seizn } from 'seizn';

const client = new Seizn({ apiKey: 'your_api_key' });

// Add memory
await client.add('User prefers dark mode');

// Search
const results = await client.search('preferences');

// Extract from conversation
await client.extract({ conversation: '...' });

MCP Server β€” Every Editor, One Memory

The Seizn MCP Server (seizn-mcp) bridges your Seizn memories to AI coding assistants via the Model Context Protocol. 40+ tools, MCP Resources, webhooks, OAuth device flow, and multi-editor config sync β€” all in one package.

bash
# Install globally or use npx
npx seizn-mcp@latest

# Or add to Claude Code settings (~/.claude/settings.json)
{
  "mcpServers": {
    "seizn": {
      "command": "npx",
      "args": ["-y", "seizn-mcp@latest"],
      "env": { "SEIZN_API_KEY": "your-api-key" }
    }
  }
}

Supported Editors

  • > Claude Code β€” native MCP
  • > Cursor β€” native MCP
  • > Windsurf β€” native MCP
  • > Cline β€” native MCP
  • ~ GitHub Copilot β€” via config sync
  • ~ Aider β€” via config sync
  • ~ OpenAI Codex β€” via config sync

Key Features

  • > 40+ MCP Tools β€” memories, knowledge graph, profile, webhooks, config sync
  • > MCP Resources β€” seizn://memories/recent, seizn://profile, seizn://context/{format}
  • > OAuth Device Flow β€” browser auth, no API key copy
  • > Auto Context β€” detects project from package.json, pyproject.toml, Cargo.toml
  • > UTF-8 Support β€” Korean, Japanese, Chinese, Arabic and 100+ languages

Multi-Editor Config Sync

Seizn exports your memories as editor-specific configuration files. Your AI preferences follow you across every tool.

FileAI ToolMethod
CLAUDE.mdClaude CodeMCP + File
AGENTS.mdOpenAI CodexFile Sync
.cursor/rulesCursorMCP + File
.windsurfrulesWindsurfMCP + File
.github/copilot-instructions.mdGitHub CopilotFile Sync
.clinerulesClineMCP + File
CONVENTIONS.mdAiderFile Sync

OAuth Device Flow

No more copying API keys. The MCP server supports RFC 8628 Device Authorization Grant for browser-based authentication.

1

Run auth_login tool

2

Enter code ABCD-1234 in browser

3

Token saved to ~/.seizn/

Zero-copy auth: The device flow generates a human-readable code, opens your browser, and saves credentials automatically. Works with any terminal or SSH session.