Complete API documentation for ChaozCode platform
All API requests require authentication via API key or session cookie.
/api/auth/login
Authenticate user and create session
POST /api/auth/login
Content-Type: application/json
{
"username": "user@example.com",
"password": "your-password"
}
{
"ok": true,
"user": {
"id": 1,
"username": "user@example.com",
"role": "user"
}
}
/api/auth/check
Check current authentication status
Response:{
"authenticated": true,
"user": {
"id": 1,
"username": "user@example.com",
"role": "user"
}
}
Access persistent memory and context management.
/api/memory-spine/memory/store
Store a memory in the system
POST /api/memory-spine/memory/store
Content-Type: application/json
{
"id": "memory-123",
"content": "Important information",
"tags": ["project", "important"]
}
/api/memory-spine/memory/search
Search stored memories
GET /api/memory-spine/memory/search?query=project&limit=10
AI-powered search and research engine with 623 API endpoints across 26 route modules. Port 5001.
/api/zearch/universal/query
Universal AI query endpoint — auto-detects intent and routes to optimal handler
POST /api/zearch/universal/query
Content-Type: application/json
{
"query": "Find authentication code",
"context_type": "code"
}
/api/zearch/research/deep
Multi-source research synthesis (web + academic + codebase)
/api/zearch/codebase/analyze
Full codebase structure analysis — 60+ file types, dependencies, metrics
Full Swagger UI: http://127.0.0.1:5001/docs — 623 endpoints available.
For additional support or questions about the API:
Contact Support Getting Started Guide