API.md · 5.2 KB

mindX API

mindX provides a production-ready API for agents, UIs, and external systems with enterprise security, authentication, and monitoring. Read the docs at the interactive Swagger UI when the backend is running.

Port: The mindX backend runs by default on port 8000. In the UI, the API tab (main menu) includes a direct link to the API information mindX provides: the interactive Swagger UI at that base URL.

📚 Complete Documentation: See API Documentation for comprehensive API reference with authentication, endpoints, examples, and SDK usage patterns.


🔐 Production API Features

Enterprise Security

Production Endpoints


Base URL and interactive docs

Use http://localhost:8000/docs to browse all endpoints, try requests, and inspect request/response schemas.

📖 Complete API Reference: API Documentation - Comprehensive guide with authentication flows, endpoint reference, examples, and SDK usage


Main route groups

PrefixDescription
/agenticplaceAgenticPlace integration (agent calls, Ollama ingest, CEO status)
/apiLLM provider APIs, admin Ollama, provider registry, monitoring
/api/monitoring/inboundInbound request metrics (latency ms, bytes, req/min); see docs/monitoring_rate_control.md
/mindxagentmindXagent interaction and memory logging
/rageRAGE routes (if enabled)
/llmLLM routes (keys, test, generate)

Monitoring and rate control apply in both directions (inbound and outbound). See docs/monitoring_rate_control.md for scientific network and data metrics (ms, bytes, req/min, tokens).


AgenticPlace (mindX as provider)

AgenticPlace uses mindX as its provider: the frontend calls the mindX backend; mindX uses Ollama (and other LLM providers) for inference.

Endpoints:

MethodEndpointDescription
POST/agenticplace/agent/callCall mindXagent through specified agent (CEO, mastermind, mindx, suntsu, pythai)
POST/agenticplace/ollama/ingestIngest prompt through Ollama AI; optionally store in memory
GET/agenticplace/ceo/statusGet CEO status and seven soldiers

AgenticPlace frontend config:


Connecting mindX to Ollama

For AgenticPlace to use Ollama via mindX:

  1. Run Ollama (e.g. on the same machine or reachable host).
- Default port: 11434. - Test: curl http://localhost:11434/api/tags

  1. Configure mindX so the backend uses that Ollama instance:
- Primary: models/ollama.yamlbase_url: http://localhost:11434 (or your Ollama URL). - Override: MINDX_LLM__OLLAMA__BASE_URL in .env, or llm.ollama.base_url in data/config. - See llm/RESILIENCE.md and docs/rate_limiting_optimization.md for fallback and rate limits.

  1. Start the mindX backend (e.g. port 8000).
- AgenticPlace calls mindX; mindX calls Ollama for /agenticplace/ollama/ingest and for agent inference when using Ollama.

  1. Verify:
- Open http://localhost:8000/docs and try GET /api/admin/ollama/models (or the equivalent admin Ollama endpoint). - Try POST /agenticplace/ollama/ingest with body {"prompt": "Hello", "model": "your-model"}.


Monitoring and rate control (both directions)

Whether mindX is ingesting, providing inference, or services, monitoring and rate control are essential in both directions. Actual network and data metrics (scientific units: ms, bytes, req/min) are defined in docs/monitoring_rate_control.md. Inbound: GET /api/monitoring/inbound. Outbound: rate limiter and provider metrics.

Related docs


Referenced in this document
AgenticPlace_Deep_Diveapi_documentationmonitoring_rate_controlollama_api_integrationrate_limiting_optimization

All DocumentsDocument IndexThe Book of mindXImprovement JournalAPI Reference