Skip to main content

Jeen Platform -- Backend API Documentation

Jeen is a microservices-based AI platform. The backend consists of 13 core services and an MCP ecosystem with 7+ tool servers. Each service runs independently, communicates via HTTP REST or RabbitMQ, and shares PostgreSQL databases where needed.

Base URL

All services expose REST APIs under:

/api/v1

Platform Services

ServicePurposePortTech
llm-coreConversations, agents, models catalog, canvas, templates4000NestJS, PostgreSQL
completion-serviceLLM gateway -- routes to 11 providers4000NestJS
agent-serviceAgentic loop with tool calling via MCP4000NestJS
document-serviceDocument upload, storage, processing orchestration4000NestJS, PostgreSQL, Azure Blob/S3
parser-serviceDocument parsing (PDF, DOCX, HTML) to markdown4004Python, FastAPI
embedding-serviceText chunking, embedding generation, translation4005Python, FastAPI
rag-serviceVector similarity search and reranking4000NestJS, pgvector
auth-serviceAuthentication, token management, identity providers4000NestJS, Redis
user-serviceBFF -- aggregates user data from downstream services4000NestJS
user-base-msUser data persistence layer4000NestJS, PostgreSQL
admin-base-msOrganization management, RBAC, tenant configuration4001NestJS, PostgreSQL
integration-serviceThird-party integration gateway (Langflow, etc.)4000NestJS
mcp-client-serviceMCP gateway -- discovers and routes tool calls8000Python, FastAPI

MCP Tool Servers

ServerTool(s)Purpose
mcp-rag-toolsearch_documentsSemantic document search
mcp-spreadsheetanalyze_excel_spreadsheetSpreadsheet analysis
mcp-web-searchweb_searchWeb search (Tavily/Brave)
mcp-veo2generateVideoFromText, generateImageVideo/image generation
mcp-code-execute-pythonrun_python_codeSandboxed Python execution
mcp-atlassianJira + Confluence toolsAtlassian integration
mcp-ui-componentsui_render, show_weather, etc.Interactive UI in chat

Authentication

Services use three auth modes:

  • JWT -- Bearer token in Authorization header (RS256 or HS256 depending on service)
  • API Key -- X-Jeen-Api-Key header for service-to-service calls
  • Public -- No auth required (health checks, internal routes)

Inter-Service Communication

Services communicate through:

  • HTTP REST -- Direct synchronous calls between services
  • RabbitMQ -- Async job processing (document parsing, embedding, transaction events)
  • Shared PostgreSQL -- Some services share database tables (document-service, parser-service, embedding-service, rag-service share the document database)
  • Redis -- Session storage (auth-service) and caching (llm-core, user-service)
  • SSE -- Server-Sent Events for real-time streaming to clients