---
title: "List retention policies"
method: GET
path: "/retention_policies"
tags: ["Retention policies"]
---

# List retention policies

`GET /retention_policies`

Retrieves all of the retention policies for an enterprise.

## Query parameters

- `policy_name` string
- `policy_type` 'finite' | 'indefinite'
- `created_by_user_id` string
- `fields` string[]
- `limit` integer
- `marker` string

## Response `200`

Returns a list retention policies in the enterprise.

- RetentionPolicies — The part of an API response that describes marker based pagination.
  - `entries` RetentionPolicy[] — A list in which each entry represents a retention policy object.
    - `id` string, required — The unique identifier that represents a retention policy.
    - `type` 'retention_policy', required — The value will always be `retention_policy`.
    - `policy_name` string — The name given to the retention policy.
    - `retention_length` string, int32 — The length of the retention policy. This value specifies the duration in days that the retention policy will be active for after being assigned to content. If the policy has a `policy_type` of `indefinite`, the `retention_length` will also be `indefinite`.
    - `disposition_action` 'permanently_delete' | 'remove_retention' — The disposition action of the retention policy. This action can be `permanently_delete`, which will cause the content retained by the policy to be permanently deleted, or `remove_retention`, which will lift the retention policy from the content, allowing it to be deleted by users, once the retention policy has expired.
    - `max_extension_length` union — The maximum extension length of the retention date. This value specifies the duration in days for which the retention date of the file under policy can be extended. If the policy type is other than 'finite' or the disposition action is other than 'permanently delete', or the maximum extension length is undefined, this field will be set to 'none'.
      - 'none'
      - string, int32
    - `description` string — The additional text description of the retention policy.
    - `policy_type` 'finite' | 'indefinite' — The type of the retention policy. A retention policy type can either be `finite`, where a specific amount of time to retain the content is known upfront, or `indefinite`, where the amount of time to retain the content is still unknown.
    - `retention_type` 'modifiable' | 'non_modifiable' — Specifies the retention type: * `modifiable`: You can modify the retention policy. For example, you can add or remove folders, shorten or lengthen the policy duration, or delete the assignment. Use this type if your retention policy is not related to any regulatory purposes. * `non-modifiable`: You can modify the retention policy only in a limited way: add a folder, lengthen the duration, retire the policy, change the disposition action or notification settings. You cannot perform other actions, such as deleting the assignment or shortening the policy duration. Use this type to ensure compliance with regulatory retention policies.
    - `status` 'active' | 'retired' — The status of the retention policy. The status of a policy will be `active`, unless explicitly retired by an administrator, in which case the status will be `retired`. Once a policy has been retired, it cannot become active again.
    - `created_by` object — A mini user object representing the user that created the retention policy.
      - `id` string, required — The unique identifier for this user.
      - `type` 'user', required — The value will always be `user`.
      - `name` string — The display name of this user.
      - `login` string, email — The primary email address of this user.
    - `created_at` string, date-time — When the retention policy object was created.
    - `modified_at` string, date-time — When the retention policy object was last modified.
    - `can_owner_extend_retention` boolean — Determines if the owner of items under the policy can extend the retention when the original retention duration is about to end.
    - `are_owners_notified` boolean — Determines if owners and co-owners of items under the policy are notified when the retention duration is about to end.
    - `custom_notification_recipients` UserMini[] — A list of users notified when the retention policy duration is about to end.
      - `id` string, required — The unique identifier for this user.
      - `type` 'user', required — The value will always be `user`.
      - `name` string — The display name of this user.
      - `login` string, email — The primary email address of this user.
    - `assignment_counts` object — Counts the retention policy assignments for each item type.
      - `enterprise` integer — The number of enterprise assignments this policy has. The maximum value is 1.
      - `folder` integer — The number of folder assignments this policy has.
      - `metadata_template` integer — The number of metadata template assignments this policy has.
  - `limit` integer — The limit that was used for these entries. This will be the same as the `limit` query parameter unless that value exceeded the maximum value allowed. The maximum value varies by API.
  - `next_marker` string, nullable — The marker for the start of the next page of results.

## Other responses

- `400` — Returns a `bad_request` if a non existent `policy_type` was specified.
- `404` — Returns a `not_found` error if the user specified in `created_by_user_id` does not exist.
- `default` — An unexpected client error.

---

[API](https://skmtc.net/box/apis/platform-api.md) · [All operations](https://skmtc.net/box/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/box/platform-api/revisions/ba8f087e1a4d/schema)
