AIFactory API Reference

Home
710 endpoints
51 blueprints
app 86
GET / Serve the main web interface
GET /api/actions/palette Redirect to correct quick-actions palette endpoint
GET /api/agents Redirect to correct agents/list endpoint
GET /api/cache/metrics Get comprehensive cache and optimization metrics
GET /api/cache/metrics/prometheus Get metrics in Prometheus format
POST /api/cache/metrics/reset Reset all cache metrics
POST /api/cache/semantic/clear Clear the semantic cache
GET /api/cache/semantic/stats Get semantic cache statistics
POST /api/chart/save Save chart as PNG
GET POST /api/charts Redirect to correct analytics/charts endpoint
DELETE GET /api/charts/<chart_id> Redirect to correct analytics/charts detail endpoint
GET /api/config Get current configuration (excluding sensitive keys)
GET /api/config/default-credentials Get default credentials status
POST /api/config/save Save current configuration to .env file (explicit save endpoint)
GET /api/config/summary Get configuration summary
POST /api/config/update Update configuration settings
GET /api/config/validate Validate application configuration
GET /api/context/budget/status Get context budget status for current model
GET /api/context/memory Get global key facts memory
POST /api/context/memory Add a fact to global memory
GET /api/context/session/<session_id> Get session information
DELETE /api/context/session/<session_id> Delete a context memory session
POST /api/context/session/<session_id>/summarize Trigger summarization of a session
POST /api/context/session/<session_id>/sync Sync session from client-side data
GET /api/context/sessions List all context memory sessions
GET POST /api/dashboards Redirect to correct analytics/dashboards endpoint
GET /api/dashboards/<dashboard_id> Redirect to correct analytics/dashboards detail endpoint
POST /api/document/context Store document context for chat integration
GET /api/document/context Get current document context
DELETE /api/document/context Clear document context
GET POST /api/feature-sets Feature sets - return empty list since not fully implemented
GET POST /api/features Redirect to correct nim/features endpoint
GET /api/features/<feature_id> Redirect to correct nim/features detail endpoint
GET /api/health/connections Get health status of all managed connections (Redis, MCP, Database)
GET /api/llm/health Check LLM provider health
GET /api/mcp/deployment-mode Get current MCP deployment mode (read-only at runtime)
GET /api/mcp/docker-env Get Docker MCP configuration from .env
POST /api/mcp/docker-env Update Docker MCP configuration in .env
GET /api/mcp/docker/image-info Get Docker image information
GET /api/mcp/docker/logs Get Docker container logs.
POST /api/mcp/docker/rebuild Rebuild Docker MCP image
POST /api/mcp/docker/restart Restart Docker MCP container
POST /api/mcp/docker/start Start Docker MCP container
GET /api/mcp/docker/status Get Docker MCP server status
POST /api/mcp/docker/stop Stop Docker MCP container
GET /api/mcp/env Get .env configuration from teradata-mcp-server/.env
POST /api/mcp/env Update .env configuration
POST /api/mcp/env/delete Delete a key from .env configuration
GET /api/mcp/health Perform health check - returns format expected by frontend
GET /api/mcp/health-summary Get comprehensive health summary for main app display
GET /api/mcp/logs Get recent logs
GET /api/mcp/logs/stream Stream logs via SSE
GET /api/mcp/modules Get status of all MCP server modules
GET /api/mcp/profiles Get available profiles
GET /api/mcp/prompts Get available MCP prompts via MCP API with fallback to filesystem
GET /api/mcp/prompts/<prompt_id> Get a specific MCP prompt's content via MCP API.
GET /api/mcp/prompts/metadata Get metadata for all MCP prompts including module status
POST /api/mcp/refresh-tools Refresh MCP tools cache based on current deployment mode
POST /api/mcp/restart Restart MCP server (Local mode only)
POST /api/mcp/start Start MCP server (Local mode only)
GET /api/mcp/status Get MCP server status (Local MCP only)
POST /api/mcp/stop Stop MCP server (Local mode only)
GET /api/mcp/tool/<tool_name> Get schema for a specific MCP tool
GET /api/mcp/tools Get available MCP tools
GET /api/neural-circuit/data Neural circuit visualization - return placeholder data
GET /api/optimization/tools/stats Get tool optimizer statistics
GET /api/prompts/all Get both MCP prompts and user prompts combined
POST /api/prompts/copy-mcp Alias for POST /api/user/prompts/copy-mcp - matches UnifiedPromptManager expectations
GET /api/prompts/user Alias for GET /api/user/prompts - matches UnifiedPromptManager expectations
POST /api/prompts/user Alias for POST /api/user/prompts - matches UnifiedPromptManager expectations
GET /api/prompts/user/<prompt_id> Alias for GET /api/user/prompts/<id> - matches UnifiedPromptManager expectations
PUT /api/prompts/user/<prompt_id> Alias for PUT /api/user/prompts/<id> - matches UnifiedPromptManager expectations
DELETE /api/prompts/user/<prompt_id> Alias for DELETE /api/user/prompts/<id> - matches UnifiedPromptManager expectations
POST /api/prompts/user/<prompt_id>/use Track prompt usage (optional analytics endpoint for UnifiedPromptManager)
GET /api/status Get current configuration status
POST /api/tokens/count Count tokens in provided text
POST /api/tokens/estimate-cost Estimate cost for given token counts
GET /api/user/prompts Get all user-saved prompts
POST /api/user/prompts Create a new user prompt (from scratch or with specific data)
GET /api/user/prompts/<prompt_id> Get a specific user prompt by ID
PUT /api/user/prompts/<prompt_id> Update an existing user prompt
DELETE /api/user/prompts/<prompt_id> Delete a user prompt
POST /api/user/prompts/copy-mcp Create a user copy of an MCP prompt for customization
GET /favicon.ico Serve favicon to prevent 404 errors
GET /metrics Expose Prometheus metrics for scraping.
GET /test/layers Serve the layer performance test page
api_docs_bp 2
GET /api-docs Render the API documentation page.
GET /api/docs/json JSON export of all registered endpoints.
accuracy 11
GET /api/accuracy/benchmarks List all available benchmarks
POST /api/accuracy/benchmarks Add a new benchmark
DELETE /api/accuracy/benchmarks/<benchmark_id> Delete a benchmark
GET /api/accuracy/export Export accuracy data in various formats
GET /api/accuracy/query-types Get available query types with descriptions
POST /api/accuracy/scores Record an accuracy score for an LLM response
POST /api/accuracy/scores/evaluate Evaluate a response without recording it
GET /api/accuracy/scores/recent Get recent accuracy scores
GET /api/accuracy/status Get accuracy scoring system status
GET /api/accuracy/summary Get accuracy summary statistics
GET /api/accuracy/trends Get daily accuracy trends
error_handler 8
GET /api/actions/mission-status Mission status endpoint
GET /api/health Health check endpoint
GET /api/local-models/list List local models
GET /api/local-models/status Local models status
POST /api/log/error Log frontend errors - prevents infinite error loop
GET /api/memory/status Memory status endpoint
GET /api/nim/performance/summary NIM performance summary endpoint
GET /api/security/quantum-shield/data Quantum shield visualization data
admin 8
POST /api/admin/ai/analyze-audit POST /api/admin/ai/analyze-audit - AI-powered audit log analysis
POST /api/admin/ai/nl-to-sql POST /api/admin/ai/nl-to-sql - Convert natural language to SQL
POST /api/admin/ai/optimize-sql POST /api/admin/ai/optimize-sql - AI-powered SQL optimization
POST /api/admin/connect Connect to Teradata as DBC admin.
POST /api/admin/execute-sql Execute arbitrary SQL (for advanced users).
POST /api/admin/grant-role Grant TD_AIAdmin role to a user.
POST /api/admin/revoke-role Revoke TD_AIAdmin role from a user.
GET /api/admin/users List users and their TD_AIAdmin role status.
agent_layers 7
POST /api/agent-layers/circuit/gate Apply quantum gate to circuit
GET /api/agent-layers/circuit/state Get current quantum circuit state
GET /api/agent-layers/metrics Get performance metrics for all layers
GET /api/agent-layers/result/<task_id> Get result for a specific task
GET /api/agent-layers/status Get agent layers system status
GET /api/agent-layers/stream SSE stream for real-time quantum circuit updates
POST /api/agent-layers/submit Submit task to agent layers
agents 23
GET /api/agents/<agent_name> Get detailed configuration for a specific agent
PUT /api/agents/<agent_name> Update an existing agent configuration
DELETE /api/agents/<agent_name> Delete an agent (only custom agents can be deleted)
PUT /api/agents/<agent_name>/llm Update LLM configuration for a specific agent
POST /api/agents/<agent_name>/toggle Toggle agent enabled/disabled status
PUT /api/agents/<agent_name>/tools Update tool access configuration for a specific agent
GET /api/agents/active-layer Phase 10.9: Get the currently active orchestration layer based on settings.
GET /api/agents/config Get multi-agent configuration
POST /api/agents/create Create a new agent configuration
GET /api/agents/export Export all agent configurations
GET /api/agents/handoffs Get recent agent handoff history
POST /api/agents/import Import agent configurations
GET /api/agents/info Get information about available agents and multi-agent configuration
GET /api/agents/layer-info Phase 10.9: Get layer-specific runtime information for all agents.
GET /api/agents/list List all agents with summary info
GET /api/agents/providers Get available LLM providers for agent configuration
GET /api/agents/supervisor Get supervisor configuration
PUT /api/agents/supervisor Update supervisor configuration
POST /api/agents/sync Force a full bi-directional sync between Flask and LangGraph Platform.
GET /api/agents/sync-status Get bi-directional sync status between Flask and LangGraph Platform.
POST /api/agents/test-routing Test agent routing for a given query without executing
POST /api/agents/validate Validate an agent configuration without saving
GET /api/agents/visualization Get agent handoff visualization data for current session
ai_assistant 5
POST /api/ai/assist POST /api/ai/assist - Unified AI task handler
POST /api/ai/batch POST /api/ai/batch - Process multiple AI tasks in batch
GET /api/ai/health GET /api/ai/health - Check AI service health and availability
GET /api/ai/models GET /api/ai/models - List available AI models and their status
POST /api/ai/stream POST /api/ai/stream - Streaming AI response (Server-Sent Events)
analytics_charts 15
GET /api/analytics/alerts Get all alerts
POST /api/analytics/alerts Create new alert
GET /api/analytics/analytics/performance Get performance analytics
GET /api/analytics/analytics/tokens Get token usage analytics
GET /api/analytics/analytics/wave/data Get quantum wave visualization data
GET /api/analytics/charts Get all chart configurations
POST /api/analytics/charts Create new chart configuration
GET /api/analytics/charts/<chart_id> Get specific chart configuration
DELETE /api/analytics/charts/<chart_id> Delete chart configuration
GET /api/analytics/charts/<chart_id>/data Get chart data
GET /api/analytics/dashboards Get all dashboards
POST /api/analytics/dashboards Create new dashboard
GET /api/analytics/dashboards/<dashboard_id> Get specific dashboard
GET /api/analytics/reports Get all reports
POST /api/analytics/reports/generate Generate analytics report
artifact 14
GET /api/artifacts/<artifact_id> Get a previously generated artifact by ID.
DELETE /api/artifacts/<artifact_id> Delete a stored artifact.
GET /api/artifacts/<artifact_id>/download Download artifact as standalone HTML file.
GET /api/artifacts/<artifact_id>/html Get just the HTML content for rendering in iframe.
POST /api/artifacts/clear Clear all stored artifacts (admin endpoint).
POST /api/artifacts/dashboard Generate a single dashboard artifact with multiple charts in CSS Grid layout.
GET /api/artifacts/dashboards List all saved dashboard configurations. [Future implementation]
GET /api/artifacts/dashboards/<dashboard_id> Retrieve a saved dashboard configuration. [Future implementation]
POST /api/artifacts/dashboards/save Save a named dashboard configuration. [Future implementation]
POST /api/artifacts/from-chart-data Generate artifacts from chat response chart_data format.
POST /api/artifacts/generate Generate a self-contained HTML artifact from chart data.
POST /api/artifacts/preview Generate and return artifact HTML directly for immediate preview.
GET /api/artifacts/status Get artifact system status.
GET /api/artifacts/themes/<theme_name> Get theme configuration by name.
cache 15
GET /api/cache/alerts Get current cache performance alerts.
POST /api/cache/batch/group Preview how queries would be grouped without processing them.
POST /api/cache/batch/process Process multiple queries using batch processing.
GET /api/cache/batch/status Get batch processing status and configuration.
POST /api/cache/clear Clear cache entries.
GET /api/cache/config Get current cache configuration.
POST /api/cache/config Update cache configuration.
GET /api/cache/health Get cache system health status.
GET /api/cache/metrics Export cache metrics in Prometheus format.
GET /api/cache/prompt-stats Get Anthropic prompt cache statistics.
POST /api/cache/similar Find similar cached queries for debugging/analysis.
GET /api/cache/stats Get detailed cache hit/miss statistics.
GET /api/cache/status Get comprehensive status of all cache subsystems.
POST /api/cache/toggle Enable or disable semantic caching.
POST /api/cache/warmup Trigger cache warmup with common queries.
chat 11
POST /api/chat Process chat request with multi-step execution, optional document context, and enhanced context memory
POST /api/chat/clear Clear chat history for the current session
POST /api/chat/context Set document context for a chat session
DELETE /api/chat/context Clear document context for a chat session
POST /api/chat/generate-title Generate a concise title for a chat session based on conversation content
GET /api/chat/history Get chat history for the current session
GET /api/chat/memory/langchain/status Get LangChain/LangGraph memory integration status
GET /api/chat/memory/pipeline/stats Get memory extraction pipeline statistics
GET /api/chat/memory/status Get status of all enhanced memory systems (Phase 2.2 & 2.6)
POST /api/chat/stream Process chat request with real-time progress updates and optional document context
POST /api/chat/stream/tokens Stream LLM response token-by-token for low first-token latency.
chat_enhancements 5
POST /api/chat-enhancements/clear Clear chat history and temporary files
GET /api/chat-enhancements/export Export chat history
GET /api/chat-enhancements/status Get chat system status
POST /api/chat-enhancements/stream Enhanced streaming chat endpoint with file support
POST /api/chat-enhancements/upload Handle file upload separately if needed
circuit_breaker 10
GET /api/circuit-breakers Get status of all circuit breakers.
POST /api/circuit-breakers Create a new circuit breaker with custom configuration.
GET /api/circuit-breakers/<name> Get status of a specific circuit breaker.
DELETE /api/circuit-breakers/<name> Remove a circuit breaker from the registry.
GET /api/circuit-breakers/<name>/metrics Get detailed metrics for a circuit breaker.
POST /api/circuit-breakers/<name>/open Force a circuit breaker to open state.
POST /api/circuit-breakers/<name>/reset Reset a circuit breaker to closed state.
GET /api/circuit-breakers/health Get health summary of all circuit breakers.
POST /api/circuit-breakers/mcp/auto-reset Auto-reset the MCP circuit breaker if the MCP health check reports healthy.
POST /api/circuit-breakers/reset-all Reset all circuit breakers to closed state.
claude_code 7
GET /api/claude-code/context Gather live health/cache/error context for injection.
GET /api/claude-code/session/history Return past session metadata.
POST /api/claude-code/session/start Start a new diagnostic/repair session.
POST /api/claude-code/session/stop Stop the running session.
GET /api/claude-code/session/stream/<session_id> SSE stream of session output.
GET /api/claude-code/status Check backend availability and provider info.
GET /api/claude-code/tasks List predefined diagnostic tasks.
copilot 5
GET /api/copilot/agents List active agents (for Copilot discovery).
GET /api/copilot/plugin.json Serve the Copilot plugin manifest.
POST /api/copilot/query Copilot-optimized query endpoint.
GET /api/copilot/tools List available MCP tools (for Copilot discovery).
GET /api/openapi.yaml Serve the OpenAPI specification.
direct_llm 11
POST /api/direct-llm/direct-llm/generate Generate text using selected model
POST /api/direct-llm/direct-llm/optimize-prompt Optimize a prompt for a specific model
GET /api/direct-llm/direct-llm/plasma/metrics Get Plasma Core metrics for visualization
POST /api/direct-llm/direct-llm/prompt-chains Create a new prompt chain
POST /api/direct-llm/direct-llm/prompt-chains/<chain_id>/execute Execute a prompt chain
GET /api/direct-llm/direct-llm/prompt-templates Get available prompt templates
GET /api/direct-llm/direct-llm/samples Get sample prompts and chains
GET /api/direct-llm/direct-llm/stream/plasma-state Stream plasma core state updates
GET /api/direct-llm/direct-llm/token-usage Get token usage statistics
GET /api/direct-llm/models Get available LLM models - returns REAL configured models
GET /api/direct-llm/models/<model_id> Get detailed information about a specific model
grafana_embed 6
GET /api/grafana/dashboard/<dashboard_uid> Get dashboard details with all panel embed URLs.
GET /api/grafana/dashboards List available dashboards with metadata.
GET /api/grafana/embed/<dashboard_uid> Get embed URL for a dashboard or panel.
GET /api/grafana/health Check Grafana connectivity.
GET /api/grafana/page/<dashboard_uid> Render a full monitoring page with embedded panels.
GET /api/grafana/panels/<dashboard_uid> Get all panels for a dashboard with their embed URLs.
health 8
GET /api/health Main health check endpoint
GET /api/health/database Check database connection health
GET /api/health/live Kubernetes-style liveness probe
GET /api/health/mcp Check MCP server connection health
GET /api/health/metrics Basic metrics endpoint
GET /api/health/ready Kubernetes-style readiness probe
GET /api/health/redis Check Redis connection health
GET /api/health/warmup Orchestrator warmup status endpoint.
jwt 12
POST /api/jwt/ai/analyze-login POST /api/jwt/ai/analyze-login - AI-powered login anomaly detection
POST /api/jwt/auto-login Auto-login using default credentials from configuration.
GET /api/jwt/config Get JWT configuration.
POST /api/jwt/device-flow-start Initiate OAuth device flow.
POST /api/jwt/device-flow/init Initiate OAuth device flow.
POST /api/jwt/device-flow/poll Poll for device flow token completion.
GET /api/jwt/ensure-valid Ensure a valid token exists (load existing or auto-login).
GET /api/jwt/load Load JWT token from file.
POST /api/jwt/password-flow Generate JWT token using password flow.
POST /api/jwt/refresh Refresh JWT token using refresh token.
POST /api/jwt/save Save JWT token to file.
POST /api/jwt/validate Validate a JWT token.
api_keys 3
POST /api/keys Create a new API key.
GET /api/keys List all active API keys (metadata only, never raw keys).
DELETE /api/keys/<key_hash> Revoke an API key by its hash.
langgraph 9
GET /api/langgraph/neural/metrics Get neural network metrics
GET /api/langgraph/samples Get sample workflow templates
GET /api/langgraph/stream/events SSE endpoint for real-time graph events
GET /api/langgraph/workflows Get all workflows
POST /api/langgraph/workflows Create a new workflow
GET /api/langgraph/workflows/<workflow_id> Get specific workflow details
POST /api/langgraph/workflows/<workflow_id>/edges Add an edge to a workflow
POST /api/langgraph/workflows/<workflow_id>/execute Execute a workflow
POST /api/langgraph/workflows/<workflow_id>/nodes Add a node to a workflow
llm_analysis 10
GET /api/llm-analysis/benchmarks Get all benchmark definitions
POST /api/llm-analysis/benchmarks Create a new benchmark definition
DELETE /api/llm-analysis/benchmarks/<benchmark_id> Delete a benchmark
GET /api/llm-analysis/export Export accuracy data as JSON or CSV
POST /api/llm-analysis/run-benchmarks Run benchmark suite and record results
GET /api/llm-analysis/scores Get accuracy scores with optional filtering
POST /api/llm-analysis/scores Record a new accuracy score
GET /api/llm-analysis/session/<session_id>/summary Get summary for a specific session
GET /api/llm-analysis/summary Get dashboard summary metrics
GET /api/llm-analysis/trends Get trend data for charts
local_models 20
GET /api/local-models/ Get all local models
POST /api/local-models/ Add a new local model
GET /api/local-models/<model_id> Get specific local model details
DELETE /api/local-models/<model_id> Delete a local model
POST /api/local-models/<model_id>/benchmark Run performance benchmark on model
POST /api/local-models/<model_id>/download Start model download
POST /api/local-models/<model_id>/inference Run inference on local model
POST /api/local-models/<model_id>/load Load model into memory
GET /api/local-models/benchmarks Get all benchmarks
GET /api/local-models/cache Get all cache entries
POST /api/local-models/cache/<model_id>/evict Evict model from cache
GET /api/local-models/cache/stats Get cache statistics
GET /api/local-models/downloads Get all download tasks
GET /api/local-models/downloads/<task_id> Get download task status
GET /api/local-models/huggingface/model-info Get HuggingFace model information
GET /api/local-models/huggingface/search Search HuggingFace model hub
GET /api/local-models/inference/<request_id> Get inference request result
GET /api/local-models/neural-circuit/data Get neural circuit visualization data
GET /api/local-models/offline/config Get offline mode configuration
PUT /api/local-models/offline/config Update offline mode configuration
mcp_docker 13
GET /api/mcp-docker/container Get Docker container information
GET /api/mcp-docker/env Get Docker environment variables
POST /api/mcp-docker/env Update Docker environment variable
GET /api/mcp-docker/health Health check for Docker MCP container
GET /api/mcp-docker/health/summary Get comprehensive health summary for Docker deployment
GET /api/mcp-docker/image Get Docker image information
GET /api/mcp-docker/logs Get Docker container logs
GET /api/mcp-docker/logs/stream Stream Docker container logs via SSE
POST /api/mcp-docker/rebuild Rebuild Docker MCP image
POST /api/mcp-docker/restart Restart Docker MCP container
POST /api/mcp-docker/start Start Docker MCP container
GET /api/mcp-docker/status Get Docker MCP container status
POST /api/mcp-docker/stop Stop Docker MCP container
mcp 9
POST /api/mcp-legacy/call Execute an MCP tool with provided parameters
POST /api/mcp-legacy/execute Execute an MCP tool with provided parameters
GET /api/mcp-legacy/modules/status Get MCP modules status
GET /api/mcp-legacy/prompts Get available MCP prompts/templates using async client
GET /api/mcp-legacy/prompts/<prompt_id> Get a specific MCP prompt's content via MCP API.
GET /api/mcp-legacy/resources Get available MCP resources (not yet implemented)
GET /api/mcp-legacy/status Get MCP connection status and statistics
GET /api/mcp-legacy/tool/<tool_name> Get detailed information about a specific MCP tool
GET /api/mcp-legacy/tools Get list of available MCP tools using async MCP client (cached for 5 min)
mcp_local 13
GET /api/mcp-local/env Get .env configuration
POST /api/mcp-local/env Update .env configuration
POST /api/mcp-local/env/delete Delete a key from .env configuration
GET /api/mcp-local/health Perform health check
GET /api/mcp-local/logs Get recent logs
GET /api/mcp-local/logs/stream Stream logs via SSE with heartbeat for connection keepalive
GET /api/mcp-local/modules Get status of all MCP server modules
GET /api/mcp-local/profiles Get available profiles
GET /api/mcp-local/prompts/metadata Get metadata for all MCP prompts
POST /api/mcp-local/restart Restart Local MCP server
POST /api/mcp-local/start Start Local MCP server
GET /api/mcp-local/status Get Local MCP server status
POST /api/mcp-local/stop Stop Local MCP server
mcp_factory 28
GET /api/mcp/actual-mode Get what MCP server mode is ACTUALLY running (not just configured).
POST /api/mcp/call Execute an MCP tool with provided parameters.
GET /api/mcp/compare Compare status of both Local and Docker deployments
GET /api/mcp/container Get Docker container info (Docker mode only)
GET /api/mcp/db-status Check database connectivity via MCP with timeout.
GET /api/mcp/env Get environment variables (auto-routes based on deployment mode)
POST /api/mcp/env Update environment variable (auto-routes based on deployment mode)
POST /api/mcp/env/check-restart-type Check if environment changes require restart or rebuild.
POST /api/mcp/execute Execute an MCP tool with provided parameters.
GET /api/mcp/health Health check based on ACTUAL running mode (not just configured)
GET /api/mcp/health/summary Get comprehensive health summary (auto-routes based on deployment mode)
GET /api/mcp/image Get Docker image info (Docker mode only)
GET /api/mcp/info Get comprehensive MCP deployment information
GET /api/mcp/logs Get MCP server logs (auto-routes based on deployment mode)
GET /api/mcp/logs/stream Stream MCP server logs via SSE (auto-routes based on deployment mode)
GET /api/mcp/mode Get current MCP deployment mode (configured AND actual running state)
POST /api/mcp/mode Switch MCP deployment mode with mutual exclusion.
GET /api/mcp/modules Get MCP module status (works in both Local and Docker modes)
GET /api/mcp/modules/status Get MCP module status (works in both Local and Docker modes)
GET /api/mcp/profiles Get available MCP profiles (Local mode only)
GET /api/mcp/prompts Get list of available MCP prompts.
POST /api/mcp/rebuild Rebuild Docker image (Docker mode only)
POST /api/mcp/restart Restart MCP server (auto-routes based on deployment mode)
POST /api/mcp/start Start MCP server (auto-routes based on deployment mode)
GET /api/mcp/status Get MCP server status based on ACTUAL running mode (not just configured).
POST /api/mcp/stop Stop MCP server (auto-routes based on deployment mode)
GET /api/mcp/tool/<tool_name> Get details for a specific MCP tool by name.
GET /api/mcp/tools Get list of available MCP tools.
mcp_tools 17
GET /api/mcp/agents Get all MCP agents - returns REAL agents from agent_config_manager
POST /api/mcp/agents Create a new MCP agent
GET /api/mcp/agents/<agent_id> Get specific agent details
DELETE /api/mcp/agents/<agent_id> Delete an MCP agent
POST /api/mcp/agents/<agent_id>/execute Execute an agent with a prompt
POST /api/mcp/agents/<agent_id>/load Load an agent into active state
GET /api/mcp/agents/<agent_id>/metrics Get agent performance metrics
GET /api/mcp/chains Get all prompt chains
POST /api/mcp/chains Create a new prompt chain
POST /api/mcp/chains/<chain_id>/execute Execute a prompt chain
GET /api/mcp/matrix/data Get data for matrix visualization
GET /api/mcp/templates Get all prompt templates
POST /api/mcp/templates Create a new prompt template
GET /api/mcp/templates/<template_id> Get specific template details
PUT /api/mcp/templates/<template_id> Update a prompt template
DELETE /api/mcp/templates/<template_id> Delete a prompt template
POST /api/mcp/templates/<template_id>/use Track template usage
memory_inspector 21
POST /api/memory/cleanup Run memory cleanup (Phase 11). Optionally specify targets.
GET /api/memory/connections Get neural connection map
POST /api/memory/context Add new context to memory
GET /api/memory/context/history Get context history
GET /api/memory/episodic Get episodic memory summaries with drill-down
GET /api/memory/facts Get key facts from procedural memory
GET /api/memory/graph/entities E2: Paginated entity listing with optional type filter.
GET /api/memory/graph/entity/<path:name> E4: Entity detail with properties and neighborhood.
GET /api/memory/graph/relationships E5: Paginated relationship listing with optional type filter.
GET /api/memory/graph/search E3: Entity search delegating to graph.search_entities().
GET /api/memory/graph/stats E1: Graph stats — entity/relationship type counts.
GET /api/memory/layers Get detailed layer information
GET /api/memory/metrics Get comprehensive memory metrics from all subsystems (Phase 11)
GET /api/memory/procedural Get procedural memory patterns and tool stats
GET /api/memory/procedural/context Get procedural patterns relevant to a context query
GET /api/memory/real-stats Get detailed statistics from real 4-layer memory system
GET /api/memory/retention Get current memory retention policy (Phase 11)
GET /api/memory/session/<session_id> Get session-specific memory information
GET /api/memory/sessions Get all sessions from real memory system
GET /api/memory/status Get current memory system status
GET /api/memory/stream Stream real-time memory updates via SSE
memory_management 15
GET /api/memory/manage/config Get current memory configuration.
GET /api/memory/manage/facts/<session_id> Get extracted key facts for a session.
GET /api/memory/manage/facts/global Get global key facts memory.
POST /api/memory/manage/facts/global Add a fact to global memory.
POST /api/memory/manage/facts/global/clear Clear all global facts.
GET /api/memory/manage/health Get memory system health status.
GET /api/memory/manage/pipeline/health Get memory pipeline enhancement status (2.2-2.8).
GET /api/memory/manage/session/<session_id> Get detailed information about a specific session.
DELETE /api/memory/manage/session/<session_id> Delete a session completely.
POST /api/memory/manage/session/<session_id>/clear Clear a session's memory.
GET /api/memory/manage/session/<session_id>/messages Get messages from a session.
GET /api/memory/manage/sessions List all active sessions.
GET /api/memory/manage/status Get comprehensive status of all memory subsystems.
POST /api/memory/manage/vector/search Semantic search across vector memories.
GET /api/memory/manage/vector/status Get vector memory status.
nim_models 18
POST /api/nim/ai/optimize-allocation POST /api/nim/ai/optimize-allocation - AI-powered GPU allocation optimization
POST /api/nim/ai/predict-scaling POST /api/nim/ai/predict-scaling - AI-powered scaling prediction
POST /api/nim/ai/recommend-model POST /api/nim/ai/recommend-model - AI-powered model recommendation
GET POST /api/nim/discover Discover and refresh NIM models from ModelOps API.
GET /api/nim/gpu-status Get GPU allocation status from ModelOps deployments.
GET /api/nim/llm-config Get current NIM LLM configuration
GET /api/nim/llm-models Get discovered NIM completion models for LLM provider selection.
POST /api/nim/llm-models/select Select a NIM model for chat completion.
POST /api/nim/llm-models/test Test connection to a NIM completion model.
GET /api/nim/model/<model_id>/config Get client configuration (endpoint/model name) for a deployed model
POST /api/nim/model/<model_id>/deploy Deploy a NIM model
GET /api/nim/model/<model_id>/details Get detailed information about a NIM model including metadata
POST /api/nim/model/<model_id>/retire Retire a deployed NIM model
GET /api/nim/models List all NIM models from ModelOps - NO HARDCODED MODELS.
GET /api/nim/projects List all ModelOps projects
GET /api/nim/test-connection Test connection to Teradata Database and ModelOps API - Two step test
POST /api/nim/test-endpoint Test a specific NIM endpoint for connectivity and model availability
POST /api/nim/validate Validate a NIM model endpoint
nim 4
GET /api/nim/config Get NIM configuration (without sensitive data).
GET /api/nim/models Get available NIM models.
GET /api/nim/status Get NIM service status.
POST /api/nim/test Test NIM connection with a simple completion.
nim_feature 15
GET /api/nim/deployments List all model deployments
GET /api/nim/feature-sets List all feature sets
POST /api/nim/feature-sets Create a new feature set
POST /api/nim/feature-sets/<fset_id>/retrieve Retrieve feature values for a feature set
GET /api/nim/features List all features in the feature store
POST /api/nim/features Create a new feature in the feature store
GET /api/nim/features/<feature_id> Get specific feature details
GET /api/nim/features/<feature_id>/values Get feature values (simulated)
GET /api/nim/grid/data Get data for cyber grid visualization
GET /api/nim/models List all NVIDIA NIM models, split by type for frontend compatibility
GET /api/nim/models/<model_id> Get specific model details
POST /api/nim/models/<model_id>/deploy Deploy a model to NVIDIA NIM
POST /api/nim/models/<model_id>/inference Run inference on a deployed model
GET /api/nim/models/<model_id>/metrics Get real-time model metrics
GET /api/nim/performance/summary Get overall performance summary
ocr_full 14
POST /api/ocr/ai/classify POST /api/ocr/ai/classify - AI-powered document classification
POST /api/ocr/ai/correct POST /api/ocr/ai/correct - AI-powered OCR error correction
POST /api/ocr/ai/extract-fields POST /api/ocr/ai/extract-fields - AI-powered field extraction
POST /api/ocr/ai/summarize POST /api/ocr/ai/summarize - AI-powered document summarization
POST /api/ocr/document/context Store document context for chat integration
GET /api/ocr/document/context Get current document context
DELETE /api/ocr/document/context Clear document context
POST /api/ocr/format Use LLM to format raw OCR text into structured JSON.
GET /api/ocr/health Check OCR services health
POST /api/ocr/process Process uploaded file with MCP OCR tool
POST /api/ocr/process-direct Process uploaded file by sending content directly to remote OCR services.
GET /api/ocr/services Get available OCR services configuration
GET /api/ocr/tools Get available OCR tools from MCP server
POST /api/ocr/upload Upload file for OCR processing
performance_metrics 11
GET /api/performance/alerts Get performance alerts
POST /api/performance/alerts/<alert_id>/acknowledge Acknowledge an alert
GET /api/performance/export Export metrics data
GET /api/performance/forecast Get performance forecast
GET /api/performance/health Get overall system health status
GET /api/performance/hologram/data Get data for holographic visualization
GET /api/performance/metrics/current Get current performance metrics
GET /api/performance/metrics/historical Get historical performance metrics
GET /api/performance/metrics/prometheus Export metrics in Prometheus format for scraping
GET /api/performance/metrics/stream Stream live performance metrics via SSE
GET /api/performance/optimization/suggestions Get optimization suggestions
prompt_generator 14
GET /api/prompts/export Export all prompts as JSON
POST /api/prompts/generate AI-assisted prompt generation for agents.
POST /api/prompts/generate-with-semantic Generate a prompt with automatic semantic tool selection.
GET /api/prompts/history/<prompt_id> Get version history for a prompt
GET /api/prompts/history/<prompt_id>/<version_id> Get a specific version of a prompt
POST /api/prompts/import Import prompts from JSON
POST /api/prompts/optimize Optimize an existing prompt.
POST /api/prompts/suggest-tools Suggest relevant MCP tools based on agent purpose using semantic search.
GET /api/prompts/templates Get available prompt templates
POST /api/prompts/templates Create a new prompt template
GET /api/prompts/templates/<template_id> Get a specific template with full content
PUT /api/prompts/templates/<template_id> Update an existing template
DELETE /api/prompts/templates/<template_id> Delete a template
POST /api/prompts/test Test a prompt with a sample LLM call.
quick_actions 6
GET /api/quick-actions/command/<command_id> Get details for a specific command
POST /api/quick-actions/execute Execute a tactical command
GET /api/quick-actions/history Get command execution history
GET /api/quick-actions/mission-status Get current mission status
GET /api/quick-actions/palette Get the full command palette
POST /api/quick-actions/suggestions Get context-aware action suggestions
scratchpad 8
POST /api/scratchpad/cleanup Clean up expired entries based on TTL.
POST /api/scratchpad/clear Clear all scratchpad entries.
GET /api/scratchpad/context Get context injection data (summaries for all entries).
GET /api/scratchpad/entries List all scratchpad entries with optional filtering.
POST /api/scratchpad/entries Create a new scratchpad entry.
GET /api/scratchpad/entries/<entry_id> Get a specific scratchpad entry with full content.
DELETE /api/scratchpad/entries/<entry_id> Delete a scratchpad entry.
GET /api/scratchpad/stats Get scratchpad statistics.
security_hardening 14
GET /api/security/api-keys List user's API keys
POST /api/security/api-keys Create new API key
DELETE /api/security/api-keys/<key_id> Revoke API key
GET /api/security/audit/events Get security event types
GET /api/security/audit/logs Get audit logs
POST /api/security/auth/login User login
POST /api/security/auth/logout User logout
POST /api/security/auth/register Register new user
GET /api/security/auth/verify Verify authentication status
GET /api/security/security/config Get security configuration
PUT /api/security/security/config Update security configuration
GET /api/security/security/quantum-shield/data Get quantum shield visualization data
GET /api/security/users List all users (admin only)
PUT /api/security/users/<user_id>/role Update user role (admin only)
settings 75
GET /api/settings/ Get all application settings from .env file
GET /api/settings/advanced Get advanced settings
PUT /api/settings/advanced Update advanced settings including orchestration layer override
GET /api/settings/context_enrichment Get context enrichment settings
PUT /api/settings/context_enrichment Update context enrichment settings
GET /api/settings/cost Get cost management and budget settings
POST /api/settings/cost Save cost management settings
POST /api/settings/cost/reset-month Reset monthly cost tracking counters
GET /api/settings/env-values Get current configuration values from Config class.
GET /api/settings/export Export all settings for backup
GET /api/settings/extended-thinking Get extended thinking (chain-of-thought) settings
POST /api/settings/extended-thinking Save extended thinking settings
GET /api/settings/general Get general application settings
PUT /api/settings/general Update general application settings
GET /api/settings/health Check consistency between .env, JSON, and Config runtime.
POST /api/settings/import Import settings from backup
GET POST /api/settings/layer Get or set orchestration layer override.
GET /api/settings/llm Get LLM provider settings
PUT /api/settings/llm Update LLM provider settings
GET /api/settings/memory Get context memory settings
PUT /api/settings/memory Update context memory settings
GET /api/settings/monitoring Get monitoring and observability settings
POST /api/settings/monitoring Save monitoring settings
POST /api/settings/monitoring/deploy-prometheus Deploy Prometheus monitoring stack via Docker
GET /api/settings/multi-agent Get multi-agent layer configuration.
POST /api/settings/multi-agent Save multi-agent layer configuration.
GET /api/settings/multi-agent/export Export multi-agent configuration as YAML
POST /api/settings/multi-agent/import Import multi-agent configuration from YAML or JSON
GET /api/settings/nim-defaults Get NIM default model selections
POST /api/settings/nim-defaults Save NIM default model selections
GET /api/settings/performance Get performance and connection pool settings
POST /api/settings/performance Save performance settings
POST /api/settings/performance/test Test performance configuration validity
GET /api/settings/platforms Get platform connection settings (Redis, Postgres, etc.)
POST /api/settings/platforms Save platform connection settings
POST /api/settings/platforms/chroma-collections List ChromaDB collections using the Python client (preferred) or REST API.
GET /api/settings/platforms/docker-logs View Docker logs - redirects to docker_blueprint
POST /api/settings/platforms/docker-start Start Docker services - redirects to docker_blueprint
GET /api/settings/platforms/docker-status Check Docker status - redirects to docker_blueprint
POST /api/settings/platforms/docker-stop Stop Docker services - redirects to docker_blueprint
GET /api/settings/platforms/export Export platform configuration
POST /api/settings/platforms/import Import platform configuration
POST /api/settings/platforms/init-checkpoint-tables Initialize LangGraph checkpoint tables in PostgreSQL
POST /api/settings/platforms/ollama-models List available Ollama models
POST /api/settings/platforms/test-chroma Test ChromaDB connection using Python client with heartbeat.
POST /api/settings/platforms/test-grafana Test Grafana connection
POST /api/settings/platforms/test-ollama Test Ollama connection
POST /api/settings/platforms/test-postgres Test PostgreSQL connection
POST /api/settings/platforms/test-prometheus Test Prometheus connection
POST /api/settings/platforms/test-redis Test Redis connection
GET /api/settings/prompts Get all saved prompts
POST /api/settings/prompts Save prompts
GET /api/settings/prompts/export Export all prompts
POST /api/settings/prompts/import Import prompts
GET /api/settings/rag Get RAG (Retrieval Augmented Generation) settings
POST /api/settings/rag Save RAG settings
POST /api/settings/rag/test Test RAG query with current settings
POST /api/settings/reload-env Reload all configuration from .env file into runtime Config.
POST /api/settings/reset Reset all settings to defaults
POST /api/settings/reset/<category> Reset settings to defaults for a specific category
POST /api/settings/save-to-env Save settings to .env file and update runtime Config.
GET /api/settings/security Get security configuration
POST /api/settings/security Save security configuration
POST /api/settings/security/audit Run security audit on current configuration
GET /api/settings/smart_viz Get smart visualization settings
PUT /api/settings/smart_viz Update smart visualization settings
POST /api/settings/sync Force synchronization from .env to JSON and Config runtime.
POST /api/settings/system-prompts/<agent> Save system prompt for a specific agent
GET /api/settings/teradata Get Teradata connection settings
PUT /api/settings/teradata Update Teradata connection settings
POST /api/settings/test-connection Test connection for various services
GET /api/settings/ui Get UI preference settings
POST /api/settings/ui Save UI preference settings
GET /api/settings/vectorstore Get vector store settings
PUT /api/settings/vectorstore Update vector store settings
supervisor 10
GET /api/supervisor/config Get current supervisor configuration
POST /api/supervisor/config Update supervisor configuration
POST /api/supervisor/memory/clear Clear all vector memory
GET /api/supervisor/memory/stats Get vector memory statistics
POST /api/supervisor/rebuild Rebuild supervisor with current settings
POST /api/supervisor/reset-l1 Reset L1 supervisor in chat_handler to force re-initialization.
POST /api/supervisor/stats/reset Reset all routing statistics
GET /api/supervisor/status Get comprehensive orchestrator status
POST /api/supervisor/tools/reindex Reindex all tools in semantic selector
POST /api/supervisor/tools/test-selection Test semantic tool selection with a query
tdvs 16
POST /api/tdvs/ai/enhance-question POST /api/tdvs/ai/enhance-question - AI-powered question enhancement
POST /api/tdvs/ai/rerank POST /api/tdvs/ai/rerank - AI-powered search result reranking
POST /api/tdvs/ai/suggest-followup POST /api/tdvs/ai/suggest-followup - AI-powered follow-up question suggestions
POST /api/tdvs/ask Ask a question using RAG via MCP - manual LLM integration
POST /api/tdvs/chat Chat with documents using RAG - uses app's LLM settings with conversation history
POST /api/tdvs/create Create vector store via MCP with full parameters
DELETE /api/tdvs/delete/<vs_name> Delete vector store via MCP
GET /api/tdvs/details/<vs_name> Get vector store details via MCP
POST /api/tdvs/grant Grant user permission on vector store via MCP
GET /api/tdvs/health Check TDVS service health via MCP
GET /api/tdvs/list List all vector stores via MCP - optionally filter by database (cached for 30s)
GET /api/tdvs/models Get available embedding models
POST /api/tdvs/revoke Revoke user permission on vector store via MCP
POST /api/tdvs/search Perform similarity search via MCP
POST /api/tdvs/update Update vector store via MCP
POST /api/tdvs/upload Upload document file(s) for vector store creation
teams_bot 1
POST /api/teams/messages Bot Framework webhook — receives all bot activities from Teams.
vectorstore 13
GET /api/vectorstore/config Get Vector Store configuration.
POST /api/vectorstore/create Create a new Vector Store (async job).
POST /api/vectorstore/delete Delete a Vector Store.
POST /api/vectorstore/grant-permission Grant permission to a user on a vector store.
POST /api/vectorstore/info Get Vector Store info.
GET /api/vectorstore/job/<job_id> Get status of a Vector Store creation job.
POST /api/vectorstore/job/<job_id>/cancel Cancel a Vector Store creation job.
GET /api/vectorstore/jobs List all Vector Store jobs.
POST /api/vectorstore/jobs/clear Clear completed and failed jobs.
POST /api/vectorstore/list List all Vector Stores.
GET /api/vectorstore/permissions Get permissions for a specific vector store.
POST /api/vectorstore/revoke-permission Revoke permission from a user on a vector store.
POST /api/vectorstore/test Test Vector Store connection.
visualization 14
POST /api/visualization/analyze Analyze data and return chart recommendations.
GET /api/visualization/charts Get all charts across all sessions.
GET /api/visualization/charts/<session_id> Get all charts for a specific session.
GET /api/visualization/charts/<session_id>/<chart_id> Get a specific chart by ID.
DELETE /api/visualization/charts/<session_id>/<chart_id> Delete a specific chart.
DELETE /api/visualization/clear/<session_id> Clear all charts for a session.
GET /api/visualization/config Get ECharts configuration including Teradata theme colors.
POST /api/visualization/dashboard Create multi-chart dashboard from multiple data sources.
GET /api/visualization/format-config Get LLM configuration for data formatting.
POST /api/visualization/format-llm LLM-powered data formatting for charts.
GET /api/visualization/health Health check for visualization service.
POST /api/visualization/parse-mcp-result Parse MCP plot tool result into chart format.
POST /api/visualization/render Render a chart from provided data.
GET /api/visualization/types Get available chart types and their descriptions.
vsdb 24
POST /api/vsdb/ai/smart-chunk POST /api/vsdb/ai/smart-chunk - AI-powered intelligent document chunking
POST /api/vsdb/ai/smart-search POST /api/vsdb/ai/smart-search - AI-enhanced semantic search
POST /api/vsdb/ai/synthesize POST /api/vsdb/ai/synthesize - AI-powered answer synthesis from multiple chunks
POST /api/vsdb/connect Connect to Teradata using JWT token or username/password.
GET /api/vsdb/connection/health Get connection health information including keepalive status.
GET POST /api/vsdb/connection/test Test Teradata connection status.
POST /api/vsdb/disconnect Disconnect from Teradata.
GET /api/vsdb/stores List all Vector Stores.
POST /api/vsdb/upload-documents Upload documents and return their server file paths for MCP tdvs_create.
POST /api/vsdb/vs/add-documents Add documents to existing Vector Store.
POST /api/vsdb/vs/ask Ask a question (RAG - similarity search + LLM response).
POST /api/vsdb/vs/cleanup-orphans Clean up orphan VS tables from failed creation attempts.
POST /api/vsdb/vs/create Create file-based Vector Store from uploaded PDFs.
POST /api/vsdb/vs/delete-documents Delete documents from Vector Store.
DELETE /api/vsdb/vs/destroy/<vs_name> Destroy Vector Store.
GET /api/vsdb/vs/details/<vs_name> Get Vector Store details.
GET /api/vsdb/vs/documents/<vs_name> Get documents in a Vector Store.
POST /api/vsdb/vs/force-drop-table Force drop an orphan VS table by name (ml__vs_* tables only).
POST /api/vsdb/vs/invalidate-cache Invalidate the Vector Store list cache.
GET /api/vsdb/vs/list List all Vector Stores.
GET /api/vsdb/vs/list-cached List all Vector Stores with caching.
POST /api/vsdb/vs/search Perform similarity search.
GET /api/vsdb/vs/status/<vs_name> Get Vector Store status.
POST /api/vsdb/vs/update Update Vector Store parameters via VSDB Direct.
workflows 14
GET /api/workflows List all available workflows. Supports ?limit=N&offset=M pagination.
POST /api/workflows Create a new workflow.
GET /api/workflows/<workflow_id> Get a specific workflow by ID.
PUT /api/workflows/<workflow_id> Update an existing workflow.
DELETE /api/workflows/<workflow_id> Delete a workflow.
POST /api/workflows/execute Execute a workflow based on query or workflow ID.
GET /api/workflows/handoffs/agents List agents available for handoffs.
GET /api/workflows/handoffs/history Get handoff history.
POST /api/workflows/match Find matching workflow for a query without executing.
POST /api/workflows/reload Reload workflow configurations from disk.
GET /api/workflows/status Get workflow system status.
GET /api/workflows/templates List available workflow templates. Supports ?limit=N&offset=M pagination.
POST /api/workflows/templates/<template_id>/instantiate Create a new workflow from a template.
POST /api/workflows/validate Validate a workflow definition using server-side checks (cycles, reachability).
help_bp 1
GET /help Render the help & documentation page.
login_bp 6
GET /login Render the landing page (login form + service links).
POST /login Handle login form submission.
GET /login/demo/<username> Quick-login for demo tenants.
GET /login/guest Continue as anonymous guest.
GET /logout Clear session and redirect to login.
GET /ocr Render the standalone OCR processing page.
teams_tab 5
GET /static/<path:filename> The view function used to serve files from
GET /teams/tab Main Teams tab page — auto-login and render AIFactory UI.
GET /teams/tab/artifact/<artifact_id> Direct artifact view for Task Module popups (Step 2 bot integration).
POST /teams/tab/auth Exchange a Teams SSO token for an AIFactory session.
GET /teams/tab/config Tab configuration page (called by Teams when user first adds the tab).
No endpoints match your search.