<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Implementing Email Retention Policies

## Commands

| Command | Description |
|---|---|
| `Get-RetentionCompliancePolicy` | List all retention policies |
| `New-RetentionCompliancePolicy` | Create a new retention policy |
| `Set-RetentionCompliancePolicy` | Modify retention policy settings |
| `New-ComplianceTag` | Create a retention label |
| `New-ComplianceTagStorage` | Publish retention labels to Exchange |
| `Set-Mailbox -LitigationHoldEnabled` | Enable litigation hold on a mailbox |
| `Get-ComplianceSearch` | Search for content matching retention criteria |

## Agent Script

```bash
# node agent.js audit --domain <value>
# node agent.js create-policy --name <value> --days <value>
# node agent.js check-hold --mailbox <value>
```
