Docs / API Reference

API Reference

Base URL: https://api.kioku.dev

Authentication: Include your API key in the X-API-Key header with every request.

Endpoints

MethodPathDescription
POST/v1/memoriesCreate a new memory
GET/v1/memories/search?q=...Semantic search across memories
GET/v1/memories/:idGet a specific memory by ID
PATCH/v1/memories/:idUpdate a memory
DELETE/v1/memories/:idSoft-delete (tombstone) a memory
GET/v1/agentsList agents in your organization
POST/v1/agents/registerRegister a new agent
GET/v1/fleetsList fleets
POST/v1/fleetsCreate a fleet
GET/v1/fleets/:id/membersList fleet members
GET/v1/auditQuery audit log
GET/v1/stats/dashboardDashboard statistics
GET/v1/usageUsage metrics for your org

MCP Integration

Kioku supports the Model Context Protocol (MCP) via SSE transport. Agents connect to https://api.kioku.dev/mcp/sse with their API key in the X-API-Key header.

Available MCP tools:

  • store_memory — Save a new memory
  • search_memories — Semantic search
  • get_memory — Retrieve by ID
  • list_fleet_memories — Browse fleet memories
  • promote_memory — Promote scope (agent → fleet → org)

Concepts

Organization

Top-level tenant. All agents, fleets, and memories belong to an org.

Fleet

A group of agents that can share memories. Agents can belong to multiple fleets.

Agent

An AI agent identity. Has a trust level, type, and fleet memberships.

Memory

A unit of knowledge — facts, observations, decisions, lessons. Has content, embeddings, trust scores, and scopes.

Scope

Visibility: agent (private), fleet (shared within fleet), org (visible to all agents).

Trust Score

0.0–1.0 confidence rating. Low-trust memories can be quarantined.

MCP

Model Context Protocol — SSE-based transport for real-time agent ↔ memory communication.