> ## Documentation Index
> Fetch the complete documentation index at: https://docs.routiq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Security Overview

> How Routiq protects your patient data and ensures compliance

## Security First

Routiq is built with healthcare security and compliance at its core. We understand that you're trusting us with sensitive patient data, and we take that responsibility seriously.

<CardGroup cols={3}>
  <Card title="Encrypted Data" icon="lock">
    AES-256 encryption at rest and TLS 1.2+ in transit
  </Card>

  <Card title="Access Control" icon="shield">
    Row-level security and role-based permissions
  </Card>

  <Card title="Audit Logs" icon="file-shield">
    Complete audit trail of all data access
  </Card>
</CardGroup>

## Security Architecture

### Infrastructure

* **Cloud Provider**: Hosted on Vercel and AWS infrastructure
* **Database**: Supabase with PostgreSQL 15 and row-level security
* **Backups**: Automated daily backups with point-in-time recovery

### Application Security

* **Authentication**: Supabase Auth with JWT tokens
* **Session Management**: Secure, httpOnly cookies with SameSite protection
* **API Security**: Rate limiting, input validation, parameterized queries
* **Security Headers**: HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy
* **Error Monitoring**: Sentry integration for tracking and resolving issues

## Data Protection

### Encryption

#### Data at Rest

Sensitive data is encrypted:

* **API keys and credentials**: AES-256-GCM encryption with PBKDF2 key derivation
* **Database storage**: Encrypted at rest via Supabase infrastructure
* **Patient data**: Protected by row-level security policies

#### Data in Transit

All data transmitted between:

* Your browser and Routiq servers
* Routiq servers and third-party APIs (Cliniko, Chatwoot, Twilio)

Uses **TLS 1.2+** encryption for all communications.

### Data Retention

| Data Type        | Retention Period     | Purpose                   |
| ---------------- | -------------------- | ------------------------- |
| Patient data     | While account active | Required for reactivation |
| Message history  | 24 months            | Analytics and support     |
| Deleted accounts | 30 days              | Account recovery          |

After retention period, data is permanently deleted.

## Access Control

### Authentication

**Multi-Factor Authentication (2FA)**

* Optional for all users
* Highly recommended for admins
* TOTP-based (Google Authenticator, Authy, etc.)

**Password Requirements**

* Minimum 8 characters (recommended: 12+)
* No common passwords (checked against breach databases)
* Password strength validation
* Secure password reset flow

### Authorization

**Role-Based Access Control (RBAC)**

| Role       | Permissions                                       |
| ---------- | ------------------------------------------------- |
| **Owner**  | Full access to all features, settings, billing    |
| **Admin**  | Create campaigns, view analytics, manage patients |
| **Member** | View-only access to patients and campaigns        |

**Row-Level Security (RLS)**

Every database query is scoped to your practice only:

* You can only access data from your own Cliniko account
* Team members can only see data from practices they're assigned to
* No cross-practice data leakage

### API Security

* **API Key Encryption**: All third-party API keys stored with AES-256
* **Secure Key Storage**: Keys stored in isolated vault
* **Key Rotation**: Ability to rotate keys without downtime
* **API Rate Limiting**: Protection against brute force and abuse

## Compliance

### Standards & Frameworks

<AccordionGroup>
  <Accordion title="AHPRA advertising compliance" icon="scale-balanced">
    AHPRA's advertising guidelines and section 133 of the National Law apply to anyone advertising a regulated health service — including a platform sending patient communications on a practice's behalf. Routiq is built so the messages it sends for you:

    * contain no false, misleading or deceptive claims;
    * use no testimonials about the **clinical** aspects of care (genuine non-clinical reviews are fine);
    * create no unreasonable expectation of beneficial treatment;
    * don't encourage unnecessary or indiscriminate use of services; and
    * state the terms of any offer.

    Review (draft) mode means your team approves every message before it sends. AHPRA registers practitioners, not software, so Routiq isn't "AHPRA registered" — but it keeps your patient communications inside AHPRA's advertising rules.
  </Accordion>

  <Accordion title="HIPAA Considerations" icon="hospital">
    While Routiq is **not currently HIPAA certified**, we implement HIPAA-aligned security controls:

    **Physical Safeguards**

    * Data centers with 24/7 security
    * Biometric access controls
    * Environmental controls

    **Technical Safeguards**

    * Data encryption (at rest and in transit)
    * Access controls and authentication
    * Audit logs and monitoring
    * Automatic logoff

    **Administrative Safeguards**

    * Security training
    * Incident response plan
    * Risk assessments

    <Warning>
      If you're subject to HIPAA, consult your compliance officer before using messaging features for PHI.
    </Warning>

    [Learn more about HIPAA →](/security/compliance)
  </Accordion>

  <Accordion title="GDPR (estimated Q4 2026)" icon="shield-halved">
    For European practices, Routiq is working toward GDPR alignment, **estimated Q4 2026**. The following data-subject rights are already supported, and we can sign a DPA:

    **Data Subject Rights**

    * Right to access (data export)
    * Right to erasure (account deletion)
    * Right to portability (data export in standard format)
    * Right to rectification (data correction)

    **Lawful Basis**

    * Consent for marketing communications
    * Legitimate interest for patient reactivation
    * Contract for service delivery

    **Data Protection**

    * Privacy by design
    * Data minimization
    * Encryption and pseudonymization
    * Data breach notification (72 hours)

    [Learn more about GDPR →](/security/compliance)
  </Accordion>

  <Accordion title="SOC 2 Type II" icon="file-certificate">
    **Status**: Audit in progress with Vanta — estimated Q3 2026

    We're working toward SOC 2 Type II certification for:

    * Security
    * Availability
    * Confidentiality
    * Processing integrity
  </Accordion>

  <Accordion title="ISO 27001" icon="certificate">
    **Status**: Working toward certification — estimated Q3 2026.

    Future certification for comprehensive information security management.
  </Accordion>
</AccordionGroup>

### Regional Compliance

**Australia**

* Privacy Act 1988
* Australian Privacy Principles (APPs)
* Spam Act 2003 (for messaging)

**United States**

* HIPAA (Health Insurance Portability and Accountability Act)
* TCPA (Telephone Consumer Protection Act)
* State privacy laws (CCPA, CPRA, etc.)

**European Union**

* GDPR (General Data Protection Regulation)
* ePrivacy Directive

## Monitoring & Incident Response

### Security Monitoring

* **Error Tracking**: Sentry integration for application errors
* **Access Logs**: Authentication and data access logging
* **Infrastructure Monitoring**: Vercel and Supabase platform monitoring

### Incident Response

In the event of a security incident:

1. **Detection**: Automated error alerts via Sentry
2. **Investigation**: Root cause analysis
3. **Notification**: Affected users notified within 72 hours (GDPR requirement)
4. **Remediation**: Fixes deployed and verified

**Contact for security issues**: [support@routiq.ai](mailto:support@routiq.ai)

## Access Logging

Application-level events are logged via Sentry:

* Authentication events (login, logout)
* API errors and failures
* Integration sync events
* Campaign execution

Access logs are retained according to our data retention policy.

## Third-Party Security

### Subprocessors

Routiq uses trusted third-party services:

| Service  | Purpose             | Security posture                                                    |
| -------- | ------------------- | ------------------------------------------------------------------- |
| Vercel   | Application hosting | SOC 2, ISO 27001                                                    |
| Supabase | Database and auth   | SOC 2 Type II                                                       |
| Cliniko  | Patient data source | ISO 27001 certified                                                 |
| Twilio   | Messaging delivery  | SOC 2, ISO 27001                                                    |
| Chatwoot | Messaging platform  | Open source, self-hostable; US-based subprocessor; covered by SCCs. |

These certifications belong to our subprocessors, not to Routiq. Routiq itself is not yet SOC 2, ISO 27001 or HIPAA certified.

### API Security

When connecting to third-party APIs:

* All API calls use HTTPS/TLS
* API keys encrypted with AES-256-GCM before storage
* Rate limiting implemented to prevent abuse
* Failed API calls logged for troubleshooting

## Data Privacy

### Data Minimization

We only collect data necessary for patient reactivation:

**Required**:

* Patient name and contact info
* Appointment history
* Treatment types

**Not collected**:

* Medical diagnoses
* Test results
* Clinical notes
* Payment information

### Data Sharing

**We never**:

* Sell patient data
* Share data with advertisers
* Use data for training AI models or non-service purposes
* Access data without authorization

**We only share data with**:

* Services you explicitly connect (Cliniko, Chatwoot, Twilio)
* Service providers for infrastructure (Vercel, Supabase)
* Law enforcement (only when legally required)

## Security Best Practices

### For Practice Owners

<Steps>
  <Step title="Enable 2FA">
    Turn on two-factor authentication for all admin accounts
  </Step>

  <Step title="Use Strong Passwords">
    Use unique, complex passwords (12+ characters) or a password manager
  </Step>

  <Step title="Review Team Access">
    Regularly audit team member roles and remove inactive users
  </Step>

  <Step title="Monitor Audit Logs">
    Review security logs monthly for unusual activity
  </Step>

  <Step title="Secure API Keys">
    Store Cliniko/Twilio/Chatwoot credentials securely, don't share
  </Step>

  <Step title="Educate Team">
    Train staff on security best practices and phishing awareness
  </Step>
</Steps>

### For Team Members

* Lock your device when stepping away
* Don't share login credentials
* Report suspicious activity immediately
* Use approved devices only
* Don't access from public WiFi without VPN

## Vulnerability Disclosure

Found a security issue? We appreciate responsible disclosure:

1. **Email**: [support@routiq.ai](mailto:support@routiq.ai)
2. **Include**: Detailed description, steps to reproduce, impact
3. **Don't**: Publicly disclose before we've fixed the issue
4. **We will**: Acknowledge within 48 hours and work to remediate

## Security Certifications & Compliance

<CardGroup cols={2}>
  <Card title="SOC 2 Type II" icon="certificate">
    **Status**: Estimated Q3 2026
  </Card>

  <Card title="GDPR" icon="shield-halved">
    **Status**: Estimated Q4 2026
  </Card>

  <Card title="HIPAA" icon="hospital">
    **Status**: Not a target — HIPAA is not on our roadmap
  </Card>
</CardGroup>

<Info>
  We implement industry-standard security controls aligned with healthcare compliance requirements. SOC 2 Type II certification is currently underway.
</Info>

## Questions?

For all support and security questions:

* **Email**: [support@routiq.ai](mailto:support@routiq.ai)

<Card title="Review Compliance Docs" icon="book" href="/security/compliance">
  Learn about HIPAA, GDPR, and other compliance requirements
</Card>
