List All Legal Hold Policies

Guides Legal Holds List All Legal Hold Policies
Edit this page

List All Legal Hold Policies

To list all Legal Hold Policies that have been created in an enterprise, call the GET /legal_hold_policies API endpoint.

curl -i -X GET "" \
     -H "Authorization: Bearer <ACCESS_TOKEN>"
Iterable<BoxLegalHoldPolicy.Info> policies = BoxLegalHoldPolicy.getAll(api);
for (BoxLegalHoldPolicy.Info policyInfo : policies) {
    // Do something with the legal hold policy.
policies = client.get_legal_hold_policies()
for policy in policies:
    print('Legal Hold Policy "{0}" has ID {1}'.format(,
let iterator = client.legalHolds.listForEnterprise(policyName: "policy1") { results in
    switch results {
    case let .success(page):
        for policy in page.entries {
            print("Legal hold policy \(")

    case let .failure(error):

Required Scopes

Before using any of the Legal Hold APIs, an application must have the right scopes enabled. See Required Scopes for more details.