Pre-launch: the core is built and tested, and the hosted service is not open yet. Request early access
SecondBrainDB

A small HTTP API that any assistant can call.

Plain HTTP and JSON, callable from a script, a ChatGPT action, a Claude tool or a local agent. There is no SDK yet, and you don't need one.

Endpoints Built

  • GET/health
  • POST/v1/memories
  • GET/v1/memories/{id}
  • GET/v1/memories/search?q=…
  • POST/v1/memories/{id}/share
  • POST/v1/workspaces

Every endpoint except /health needs Authorization: Bearer <api_key>. A missing or revoked key gets 401 before any data is touched; a key without the right scope gets 403.

Example: write a private memory, then share it

curl -X POST https://your-server.example/v1/memories \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"workspace_id": 1, "kind": "note",
       "body": "The customer prefers async updates",
       "visibility": "private"}'
# → {"id": 42}

curl -X POST https://your-server.example/v1/memories/42/share \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"grantee_agent_id": 7}'
# → {"shared": true}

your-server.example stands for your own self-hosted address. There is no public hosted endpoint yet.

Connectors Planned

ChatGPT and OpenAI-compatible tools

An OpenAPI action definition wrapping the endpoints above.

Claude (MCP)

An MCP server exposing the same operations as tools.

Local and self-hosted models

A small Python client. The raw API already works without it.

Every connector will be a convenience layer over the same fail-closed permissions, never a separate, more permissive path into the data.