Seizn.

API 문서

Seizn을 애플리케이션에 통합하는 데 필요한 모든 것. 몇 줄의 코드로 AI에 영구 메모리를 추가하세요.

빠른 시작

대시보드에서 API 키를 받은 후 대시보드요청을 시작하세요:

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"

인증

모든 API 요청에는 Authorization: Bearer 헤더에 API 키가 필요합니다.

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

보안: API 키를 안전하게 보관하세요. 클라이언트 측 코드에 노출하지 마세요. 환경 변수나 백엔드 프록시를 사용하세요.

API 엔드포인트

POST/api/memories

사용자의 메모리 저장소에 새 메모리를 추가합니다.

요청 본문

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

응답

{
  "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

의미적 유사성을 사용하여 메모리를 검색합니다.

쿼리 매개변수

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

응답

{
  "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

ID로 메모리를 삭제합니다.

쿼리 매개변수

ids-string (required) - comma-separated

응답

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

AI를 사용하여 대화에서 메모리를 추출하고 저장합니다.

요청 본문

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

응답

{
  "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

관련 메모리를 컨텍스트로 사용하여 AI 생성 응답을 받습니다 (RAG).

요청 본문

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

응답

{
  "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"
}

요청 제한

플랜월간 API 호출최대 메모리API 키
무료1,0001002
Starter50,0005,0003
플러스500,00050,0005
프로2,000,000무제한10
엔터프라이즈무제한무제한100

요청 제한을 초과하면 API가 429 Too Many Requests 응답을 반환합니다.

오류 코드

코드설명
200성공
400잘못된 요청 - 매개변수 누락 또는 유효하지 않음
401권한 없음 - API 키가 유효하지 않거나 누락됨
429요청 과다 - 요청 제한 초과
500내부 서버 오류 - 문제가 발생했습니다

보안 및 거버넌스

데이터 보안

  • 저장 시 암호화: 모든 데이터 AES-256으로 암호화
  • 전송 중 암호화: 모든 연결에 TLS 1.3
  • 테넌트 격리: 계정 간 완전한 데이터 분리

API 키 관리

  • 키 순환: 대시보드에서 언제든지 키 순환
  • 키 만료: 90일 후 자동 만료 (설정 가능)
  • 사용량 추적: 키별 사용량 실시간 모니터링

데이터 보존 및 삭제

  • 내보내기: API 또는 대시보드를 통해 언제든지 모든 데이터 내보내기
  • 삭제: 30일 후 보존 없이 영구 삭제
  • GDPR/CCPA: 데이터 주체 권리 완전 준수

SDK

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.