Retrieve all policies that have been soft-deleted (archived) for the organization. Only policies with a deletedAt timestamp are returned. Use Restore archived policy — POST /api/v1/policies/logical/{logicalId}/restore to recover one.
Each archived policy in the response includes:
| Field | Type | Description |
|---|---|---|
id | string | Policy version identifier |
logicalId | string | Stable identifier shared across all versions |
version | number | Policy version number |
isLatest | boolean | Whether this is the latest version of the policy |
name | string | Policy name |
description | string | Detailed policy description |
status | string | Status at time of deletion |
conditionLogic | string | How conditions are combined (ALL or ANY) |
enforcementMode | string | Enforcement level (STRICT, ADVISORY, LOG_ONLY) |
type | string | Policy type |
priority | number | Policy priority |
organizationId | string | Owning organization |
conditions | array | Conditions that determine when policy matches |
actions | array | Actions to execute when policy matches |
createdAt | string | When policy was created (ISO 8601) |
updatedAt | string | When policy was last modified (ISO 8601) |
createdBy | string | ID of user who created the policy |
updatedBy | string | ID of user who last updated the policy |
deletedAt | string | When the policy was archived (ISO 8601) |
deletedBy | string | ID of user who deleted the policy |
policies:read
Retrieve all policies that have been soft-deleted (archived) for the organization. Only policies with a deletedAt timestamp are returned. Use Restore archived policy — POST /api/v1/policies/logical/{logicalId}/restore to recover one.
Each archived policy in the response includes:
| Field | Type | Description |
|---|---|---|
id | string | Policy version identifier |
logicalId | string | Stable identifier shared across all versions |
version | number | Policy version number |
isLatest | boolean | Whether this is the latest version of the policy |
name | string | Policy name |
description | string | Detailed policy description |
status | string | Status at time of deletion |
conditionLogic | string | How conditions are combined (ALL or ANY) |
enforcementMode | string | Enforcement level (STRICT, ADVISORY, LOG_ONLY) |
type | string | Policy type |
priority | number | Policy priority |
organizationId | string | Owning organization |
conditions | array | Conditions that determine when policy matches |
actions | array | Actions to execute when policy matches |
createdAt | string | When policy was created (ISO 8601) |
updatedAt | string | When policy was last modified (ISO 8601) |
createdBy | string | ID of user who created the policy |
updatedBy | string | ID of user who last updated the policy |
deletedAt | string | When the policy was archived (ISO 8601) |
deletedBy | string | ID of user who deleted the policy |
policies:read