Reports API
Enterprise report generation, library management, and scheduling. F3 adds three new AI-specific report types with compliance control mapping.
Generate Report
POST /api/enterprise-users/generate-report
Generate an enterprise report using live analytics and AI governance data.
Authentication: JWT (admin or super_admin role required)
Request Body:
{
"report_type": "compliance",
"template_name": "AI Agent Governance Report",
"classification": "Confidential"
}
Available Template Names:
| Template | Type | Description |
|---|---|---|
SOX Compliance Report | compliance | SOX IT controls mapped to governed actions |
HIPAA Compliance Report | compliance | HIPAA technical safeguards assessment |
Risk Assessment Report | risk | Overall security posture and risk distribution |
Executive Security Report | executive | Executive summary with AI + user sections |
AI Agent Governance Report | compliance | F3: Full AI governance assessment with 4-framework mapping |
MCP Server Compliance Report | compliance | F3: MCP server inventory and risk analysis |
Autonomous Agent Risk Summary | risk | F3: Autonomous agent census and risk trajectory |
Response: 200 OK
{
"status": "success",
"message": "AI Agent Governance Report generated successfully",
"report_id": "RPT-AI-20260410-40858",
"classification": "Confidential",
"generated_by": "sarah.chen@meridian-capital.com",
"content_preview": {
"total_users": 3,
"security_score": 65.2,
"compliance_status": {
"sox_compliance": 17.3,
"hipaa_compliance": 79.8,
"pci_compliance": 81.5,
"iso27001_compliance": 60.6,
"source": "ai_governance_pipeline"
}
}
}
New Report Types (F3)
AI Agent Governance Report
Full enterprise governance assessment for CISO, Board, and regulators.
Sections:
- Governance Summary — total governed actions, approval/denial rates, risk posture, security score
- Risk Path Evidence — MITRE ATT&CK detections with pattern, severity, and confidence
- Agent Inventory — registered agents, MCP servers, discovered agents
- Compliance Mapping — SOX, HIPAA, PCI-DSS, NIST AI RMF control scores with evidence counts
- User Access Controls — MFA adoption, user count (reported separately from AI governance)
- Recommendations — compliance improvement suggestions
MCP Server Compliance Report
Focused assessment of MCP server governance and tool usage.
Sections:
- MCP Server Inventory — all registered MCP servers with trust level and health
- MCP Risk Detections —
unauthorized_mcp_toolandsecrets_via_mcppattern detections - Overall Risk Evidence — all risk path detections for context
Autonomous Agent Risk Summary
Risk-focused view of autonomous (non-supervised) agents.
Sections:
- Autonomous Agent Census — count, names, status
- Governance Summary — approval rates, human review rates for autonomous actions
- Risk Detections — risk paths involving autonomous agents
- Kill Switch Events — any terminations
- Agent Type Breakdown — autonomous vs supervised comparison
- Recommendations — agents that should be moved to supervised mode
Threat Intelligence Brief (Updated)
The Executive Security Report now includes clearly separated sections:
- Section A: AI Agent Threat Intelligence — governance summary, risk path detections, agent inventory (sourced from
GovernanceReportPipeline) - Section B: User Access Controls — security score, MFA adoption, compliance overview, department distribution (sourced from existing
get_user_analytics)
These two sections are never mixed. A regulator can clearly distinguish AI agent activity from human user activity.
Report Library
GET /api/enterprise-users/reports/library
List all generated reports for the organization.
Response: 200 OK — array of report metadata (id, title, type, classification, created_at, download_count)
GET /api/enterprise-users/reports/download/:report_id
Download a specific report by ID. Increments download counter.
Scheduled Reports
POST /api/enterprise-users/scheduled-reports
Create a scheduled report generation job.
Request Body:
{
"name": "Weekly AI Governance Report",
"template_name": "AI Agent Governance Report",
"report_type": "compliance",
"frequency": "weekly",
"day_of_week": 1,
"time_of_day": "08:00",
"recipients": ["ciso@company.com"],
"classification": "Confidential"
}