Skip to main content

Audit Trails

DocuTrust maintains an immutable audit trail for every significant action in the platform. Audit entries are protected by a PostgreSQL trigger that prevents modification or deletion, and each entry is chain-hashed with SHA-256 to form a tamper-evident log. All records are retained for 7 years.

Audit Events

List Audit Events

Retrieve audit events for your account, with optional filtering.
Query Parameters Response 200 OK
AuditEvent Object

Common Audit Event Types

Security Events

Security events are a specialized subset of audit events focused on authentication, access control, and threat detection. These are accessible only to account administrators.

List Security Events

Response 200 OK
SecurityEvent Object

Security Event Types

Security Events Summary

Get an aggregated summary of security events over a time period.
Query Parameters Response 200 OK
SecuritySummary Object

Chain Hashing

Every audit entry includes a SHA-256 hash that incorporates the hash of the previous entry, creating a tamper-evident chain. If any historical entry is modified, the chain breaks and the integrity violation is detectable.
This mechanism ensures that:
  • No entry can be modified after creation without detection
  • No entry can be deleted without breaking the chain
  • The entire audit history can be verified by recomputing hashes from the first entry

Retention

Audit records are retained for 7 years from the date of creation. This meets the retention requirements of:
  • HIPAA: 6-year minimum for PHI access logs
  • SOC 2: Retention period defined by organizational policy
  • GDPR: Proportional retention justified by legal compliance obligations
After 7 years, records are securely purged.