MATIH Platform is in active MVP development. Documentation reflects current implementation status.
8. Platform Services
API Reference

API Reference

Complete endpoint reference for the Audit Service. All endpoints require JWT authentication. The service runs on port 8086.


Audit Events

MethodPathDescription
POST/api/v1/audit/eventsCreate audit event (synchronous)
POST/api/v1/audit/events/asyncCreate audit event (asynchronous via Kafka)
GET/api/v1/audit/events/:eventIdGet audit event by ID
GET/api/v1/audit/tenants/:tenantId/eventsList tenant events (paginated)
GET/api/v1/audit/tenants/:tenantId/events/time-rangeList events by time range
GET/api/v1/audit/tenants/:tenantId/actors/:actorId/eventsList events by actor
GET/api/v1/audit/tenants/:tenantId/resources/:resourceType/:resourceId/eventsList events by resource
GET/api/v1/audit/correlation/:correlationIdGet events by correlation ID
GET/api/v1/audit/tenants/:tenantId/events/failedList failed events
POST/api/v1/audit/searchFull-text search with filters

Analytics

MethodPathDescription
GET/api/v1/audit/analytics/tenants/:tenantId/dashboardDashboard metrics
GET/api/v1/audit/analytics/tenants/:tenantId/time-seriesTime series data
GET/api/v1/audit/analytics/tenants/:tenantId/access-patternsAccess pattern analysis
GET/api/v1/audit/analytics/tenants/:tenantId/users/:actorId/behaviorUser behavior analysis
GET/api/v1/audit/analytics/tenants/:tenantId/anomaliesAnomaly detection
POST/api/v1/audit/analytics/tenants/:tenantId/baseline/recalculateRecalculate baselines

Compliance Reports

MethodPathDescription
GET/api/v1/audit/reports/tenants/:tenantId/soc2SOC 2 compliance report
GET/api/v1/audit/reports/tenants/:tenantId/gdprGDPR compliance report
GET/api/v1/audit/reports/tenants/:tenantId/security-summarySecurity summary report
GET/api/v1/audit/reports/tenants/:tenantId/users/:userId/activityUser activity report
GET/api/v1/audit/reports/tenants/:tenantId/summaryCombined compliance summary

Data Access Reports

MethodPathDescription
GET/api/v1/audit/data-access/tenants/:tenantId/reportTenant data access report
GET/api/v1/audit/data-access/tenants/:tenantId/resources/:resourceType/:resourceIdResource access report
GET/api/v1/audit/data-access/tenants/:tenantId/users/:userIdUser data access report
GET/api/v1/audit/data-access/tenants/:tenantId/anomaliesData access anomaly detection

GDPR

MethodPathDescription
POST/api/v1/gdpr/requests/data-accessCreate data access request
POST/api/v1/gdpr/requests/data-deletionCreate deletion request
POST/api/v1/gdpr/requests/data-portabilityCreate portability request
POST/api/v1/gdpr/requests/verify/:tokenVerify request identity
GET/api/v1/gdpr/requests/:requestIdGet request by ID
GET/api/v1/gdpr/tenants/:tenantId/requestsList tenant requests
GET/api/v1/gdpr/tenants/:tenantId/requests/status/:statusFilter by status
GET/api/v1/gdpr/tenants/:tenantId/requests/type/:typeFilter by type
GET/api/v1/gdpr/subjects/:dataSubjectId/requestsGet subject requests
POST/api/v1/gdpr/requests/:requestId/rejectReject a request
GET/api/v1/gdpr/requests/:requestId/downloadDownload export file
GET/api/v1/gdpr/tenants/:tenantId/statsGDPR statistics

SIEM Integration

MethodPathDescription
POST/api/v1/audit/siem/tenants/:tenantId/configurationsRegister SIEM config
GET/api/v1/audit/siem/tenants/:tenantId/configurationsList SIEM configs
PUT/api/v1/audit/siem/tenants/:tenantId/configurations/:configIdUpdate SIEM config
DELETE/api/v1/audit/siem/tenants/:tenantId/configurations/:configIdDelete SIEM config
PATCH/api/v1/audit/siem/tenants/:tenantId/configurations/:configId/enabledEnable/disable
POST/api/v1/audit/siem/tenants/:tenantId/configurations/testTest connection
GET/api/v1/audit/siem/tenants/:tenantId/statsForwarding statistics
GET/api/v1/audit/siem/typesSupported SIEM types

Retention Policies

MethodPathDescription
POST/api/v1/audit/retention/policiesCreate retention policy
GET/api/v1/audit/retention/policies/:policyIdGet policy by ID
GET/api/v1/audit/retention/tenants/:tenantId/policyGet tenant policy
GET/api/v1/audit/retention/policiesList all policies
PUT/api/v1/audit/retention/policies/:policyIdUpdate policy
DELETE/api/v1/audit/retention/policies/:policyIdDelete policy
POST/api/v1/audit/retention/tenants/:tenantId/executeExecute retention for tenant
GET/api/v1/audit/retention/tenants/:tenantId/statsRetention statistics
POST/api/v1/audit/retention/execute-allExecute all retention policies