Endpoints Overview
Core
| Method | Path | Description |
|---|---|---|
POST | /api/build | Process text into memory |
POST | /api/chat | Chat with memory (returns schema_updated flag) |
POST | /api/listen | Listen mode: periodic build + every-turn recall |
POST | /api/update-schema-from-chat | Manually update schema from recent chat rounds |
Configuration
| Method | Path | Description |
|---|---|---|
GET | /api/config/schema-update-rounds | Get current auto-update setting |
PUT | /api/config/schema-update-rounds | Change auto-update setting at runtime |
GET | /api/config/chatbot-context-rounds | Get chatbot context window size |
PUT | /api/config/chatbot-context-rounds | Change chatbot context window at runtime |
Schemas
| Method | Path | Description |
|---|---|---|
GET | /api/schemas | List schema domains |
GET | /api/schemas/{name} | Get schema details |
GET | /api/schemas/file-data/{schema_id} | Get full domain data from schema file |
GET | /api/schemas/recall-all | Get all schema data as formatted text (for LLM injection) |
POST | /api/schemas/recall | Selectively recall schema data relevant to a message |
GET | /api/schemas/inspect-all | Token-efficient schema overview |
POST | /api/schemas | Create a new schema domain |
DELETE | /api/schemas/{name} | Delete a schema domain |
DELETE | /api/schemas | Delete all schema domains |
POST | /api/schemas/from-template | Copy template as a schema file and switch session to it |
POST | /api/schemas/create-file | Create a named schema file (with optional template) |
POST | /api/schemas/new | Backup current schema and start fresh |
POST | /api/schemas/switch | Switch session to a different schema |
POST | /api/schemas/restore | Restore a schema from backup |
GET | /api/schemas/saved | List all standalone schema files |
GET | /api/schemas/backups | List schema backups |
Templates
| Method | Path | Description |
|---|---|---|
GET | /api/templates | List available templates with info |
GET | /api/templates/grouped | List templates grouped by source (builtin/user/custom) |
GET | /api/templates/{name} | Get full template data |
POST | /api/templates/custom | Save a custom template |
DELETE | /api/templates/custom/{name} | Delete a custom template |
Sessions
| Method | Path | Description |
|---|---|---|
GET | /api/sessions | List sessions (includes schema_id) |
POST | /api/sessions | Create session (with optional schema_id) |
DELETE | /api/sessions/{id} | Delete a session |
POST | /api/sessions/{id}/clear | Clear session history (preserve schemas) |
GET | /api/sessions/{id}/history | Get session chat history |
GET | /api/sessions/{id}/schema-id | Get session’s bound schema ID |
PUT | /api/sessions/{id}/schema-id | Bind session to a different schema |