← Back to Dashboard

Compliance Reporting

Generate and manage compliance reports for SOC2, GDPR, and audit requirements.

Table of Contents

Overview

For everyone: The Compliance page helps you stay audit-ready by generating official reports about how your AI agents handle data. Whether you need to prove your security controls for SOC2, export personal data for GDPR, or review administrative actions, this page generates the documents you need — in formats auditors and regulators can work with.

For technical users: The compliance module generates structured reports by querying the engine's audit trail, agent activity logs, DLP violations, and access patterns. Reports are generated asynchronously via POST /compliance/reports/:type and downloadable in JSON or CSV format. Agent-scoped and date-range-scoped queries are supported.

How It Works

  1. Select report type — choose SOC2 Summary, GDPR Export, or Audit Summary.
  2. Configure scope — set date range, select specific agents (optional).
  3. Generate — the report is created asynchronously on the server.
  4. Download — once completed, download in JSON (programmatic) or CSV (spreadsheet) format.

Key Concepts

Report Scoping

Reports can be scoped by:

Report Lifecycle

StatusMeaning
completedReport is ready for download
pendingReport is being generated
failedReport generation encountered an error

Report Types

SOC2 Summary

Documents security controls, access patterns, and policy enforcement for SOC2 auditors. Includes:

Scope: Date range + optional agent filter

GDPR Export

Generates a data subject access report for a specific agent, showing all personal data processed. Useful for responding to data subject access requests (DSARs). Includes:

Scope: Specific agent (required)

Tip: GDPR exports require selecting a specific agent because the report is about data processed by that agent. You cannot generate a GDPR export for "all agents" — create one per agent as needed.

Audit Summary

Aggregated view of all administrative actions over a date range. Useful for internal reviews and general audit readiness. Includes:

Scope: Date range + optional agent filter

Generating Reports

  1. Navigate to the Generate tab.
  2. Select the Report Type from the dropdown.
  3. For SOC2/Audit: set the From and To dates (defaults to last 30 days).
  4. For GDPR: select the target Agent (required).
  5. For Audit: optionally select a specific Agent to filter.
  6. Click Generate Report.
  7. Switch to the Reports tab to monitor status and download when complete.
Tip: For SOC2 audits, generate monthly reports to maintain a continuous compliance record. This makes annual audits much smoother.

Report History

The Reports tab shows all previously generated reports with:

ColumnDescription
TitleAuto-generated descriptive title
TypeSOC2, GDPR, or AUDIT badge
StatusCompleted, pending, or failed
GeneratedTimestamp of report creation
ByUser who generated the report
ActionsDownload as JSON or CSV (completed reports only)

Download Formats

Configuration & Setup

API Endpoints

MethodEndpointDescription
GET/compliance/reports?orgId=List all reports
POST/compliance/reports/soc2Generate SOC2 summary
POST/compliance/reports/gdprGenerate GDPR export
POST/compliance/reports/auditGenerate audit summary
GET/compliance/reports/:id/download?format=Download report (json or csv)

Request Body Examples

// SOC2 Summary
POST /compliance/reports/soc2
{
  "orgId": "org-123",
  "dateRange": { "from": "2026-01-01", "to": "2026-01-31" },
  "agentIds": ["agent-1", "agent-2"]  // optional
}

// GDPR Export
POST /compliance/reports/gdpr
{
  "orgId": "org-123",
  "agentId": "agent-1"  // required
}

// Audit Summary
POST /compliance/reports/audit
{
  "orgId": "org-123",
  "dateRange": { "from": "2026-01-01", "to": "2026-03-01" },
  "agentIds": ["agent-1"]  // optional
}

Best Practices

Troubleshooting

Report stuck in "pending" status

Large reports with wide date ranges may take several minutes. Wait and refresh the Reports tab. If it stays pending for more than 10 minutes, there may be a backend issue — check server logs.

Report shows "failed" status

Common causes: invalid date range (from > to), agent ID not found, or database timeout for very large datasets. Fix the parameters and regenerate.

GDPR export has no data

Verify the selected agent has actually processed data during the reporting period. Newly created agents with no activity will produce empty reports.

Download not starting

The download opens in a new tab via /api/engine/compliance/reports/:id/download. Ensure your browser isn't blocking popups. Try right-clicking the download button and selecting "Open in new tab."

Cannot generate reports

Report generation requires admin-level access. Check your user role and permissions on the Users page.

AgenticMail Enterprise Documentation Report an issue