Maniyam Enterprise Platform

API Version 2.0 - Maniyam Enterprise Backend

Current Release
2026.2.1
Production: 2026.1.1
v2.0
API Version
87
Database Tables (Dev)
55
SQLAlchemy Models
7
Migrations Ready

What is Maniyam API v2?

Maniyam API v2 (Maniyam Enterprise Platform) is the next-generation backend powering the Maniyam AI-first Enterprise Business Suite. Built with FastAPI, async PostgreSQL, and enterprise-grade security, v2 introduces advanced features like AI-powered automation, real-time ETL processing, and comprehensive organizational management.

Core Technologies

  • FastAPI - High-performance async Python framework
  • SQLAlchemy 2.0 - Async ORM with PostgreSQL
  • Redis - Caching & rate limiting
  • Pydantic v2 - Data validation & serialization
  • JWT + OAuth2 - Enterprise authentication

Enterprise Features

  • Multi-tenancy - Complete data isolation
  • RBAC - Hierarchical permission system
  • Rate Limiting - Per-tenant request throttling
  • Audit Logging - Structured JSON logging
  • ETL Worker - Background data processing

Release 2026.2.1 Targets

Key features and modules targeted for the upcoming production release.

🤖

AI Agent Chatbot

In Development

Natural language permission management with Intent Kernel AI orchestrator. Enables conversational HR operations.

Business Value: 60% reduction in admin tasks
📊

Reporting Module (ETL)

Fixed 2026-02-03

Real-time ETL with CDC triggers. Auto-updates 16 aggregation tables every 5 seconds. RCA completed and routing fix applied.

Status: ETL auto-processing all tables
👥

ATS with AI Resume

Partial

End-to-end Applicant Tracking System with AI-powered resume screening, ranking, and candidate management.

Business Value: 80% faster hiring process
🏢

Groups & Departments

Ready for Release

Complete organizational structure management with hierarchical departments, groups, and user assignments.

Business Value: Flexible org management
💰

Accounting Module

Nice to Have

Invoicing, bills, payments, journals, and purchase orders. Complete financial management integration.

Business Value: Unified financial ops
📈

Reporting System

Phase 3 Complete

Dynamic report builder with edit flows, dashboard management, live preview, and ETL-powered aggregations.

Business Value: Self-service analytics

Production vs Development Status

Production (2026.1.1)

devv2.maniyam.com • Stable Release

Available Features

  • Authentication & JWT Tokens
  • Multi-tenant Architecture
  • RBAC Permission System
  • Dynamic Forms Engine
  • CRM & Customer Management
  • Departments & Groups (Basic)
  • Leave Management
  • Timesheet & Payroll
Database: 36 tables • Schema: maniyamproddb

Development (2026.2.1)

release/2026.2.1 • Next Release

New & Enhanced Features

  • Groups & Departments (Enhanced) NEW
  • Soft Delete & Validation NEW
  • User Assignments Module NEW
  • Work Assignments NEW
  • Assignment Types & Roles NEW
  • ETL Background Worker NEW
  • ATS Resume Screening WIP
  • AI Chatbot Integration WIP
Database: 87 tables • Schema: maniyamnew

Database Migration Status

Migrations required to upgrade production from 2026.1.1 to 2026.2.1

Migration Description Dev Prod Action
001 Cron Jobs Tables ✓ Applied ✓ Applied None
002 Departments & Groups (Base) ✓ Applied ✓ Applied None
003 Departments PRD Updates ✓ Applied ✓ Applied None
004 Groups M2M Junction Table ✓ Applied ⚠ Partial Run partial
005 Assignments Module ✓ Applied ✗ Missing Run full
006 Assignment Types & Roles ✓ Applied ⚠ Partial Run partial
007 Groups Dept Optional ✓ Applied ✗ Missing Run full

Consolidated Migration Available

A single consolidated migration script PROD_2026.2.1_CONSOLIDATED_MIGRATION.sql is available that includes all missing migrations. Creates 9 new tables and updates FK constraints.

ETL & Reporting System

ACTIVE

Real-time Change Data Capture (CDC) system with automatic aggregation updates.

5 sec
ETL Interval
7
Active Triggers
16
Aggregation Tables
5
Processing Functions

How It Works (Auto-Trigger)

1. Data Change 2. Trigger Fires 3. Queue Entry 4. ETL Processes 5. Reports Updated

Recent Fix (2026-02-03): Routing logic updated to process all table types. See Dox/reporting/RCA/ for full analysis.

Reporting System Phase 3

NEW 2026-02-05

Complete Edit flows for Reports and Dashboards with Live Preview capability.

✏️

Edit Report Flow

Complete

Full edit capability for custom reports with pre-filled configuration.

  • • Edit button on Report View page
  • • Pre-fill name, description, SQL, chart type
  • • PUT /reports/{id} for updates
📋

Edit Dashboard Flow

Complete

Full edit capability for custom dashboards with pre-selected reports.

  • • Edit button on Dashboard View page
  • • Pre-fill name, description, selected reports
  • • PUT /reports/dashboards/{id} for updates
👁️

Live Preview

Complete

Preview report results without saving to database.

  • • POST /reports/preview endpoint
  • • Executes SQL without persisting
  • • Returns data + column metadata

Phase 3 API Endpoints

PUT /v2/api/reports/{id}

Update existing report configuration

PUT /v2/api/reports/dashboards/{id}

Update existing dashboard

POST /v2/api/reports/preview

Preview report without saving

GET /v2/api/reports/dashboards/{id}

Get dashboard with report configs

JIRA: MNYM-357 • Branch: release/2026.2.1 • Status: Dev Complete

API Modules & Endpoints

Authentication

JWT tokens, OAuth2, refresh tokens, password reset

/v2/api/auth/*

Users & Permissions

User management, roles, hierarchical permissions

/v2/api/users/*

Departments

Hierarchical departments with soft delete

/v2/api/departments/*

Groups

Organizational groups with M2M departments

/v2/api/groups/*

Assignments

User-to-org assignments with roles

/v2/api/assignments/*

Forms Engine

Dynamic forms, templates, field relations

/v2/api/forms/*

CRM

Customers, vendors, mailbox

/v2/api/crm/*

ATS

Candidates, interviews, offers, onboarding

/v2/api/ats/*

Accounting

Invoices, bills, payments, journals

/v2/api/accounting/*

Appendix & Technical Details

Database Connections

# Development
Host: 52.91.125.253
Schema: maniyamnew
# Production
Host: maniyam-prod.*.rds.amazonaws.com
Schema: maniyamproddb

Quick Links

Related Services

Maniyam API v1
Legacy backend
devv1.maniyam.com
HRMS Frontend
Next.js + React
app.maniyam.com
Intent Kernel AI
AI Orchestrator
Port 8001/8002