# Add a policy for a manual release of quarantined transfers ![Beta](/assets/beta-label.9b17384c64e8fb7cb732f95290c8a2c0d60692664b94277dc09c2c605b8b07a9.93c15c9d.png)

Quarantined transfers need a policy that defines a manual workflow for releasing the transfers from quarantine.

Note:
Alternatively, you can add a policy for automatically releasing quarantined transfers. For more information, see [Add a policy for an automatic release of quarantined transfers](/pt-br/products/custody/compliance/transaction-screening/automatic-quarantine-release-policy).

To add a policy for manually releasing quarantined transfers in your Elliptic or Chainalysis integration, complete these steps:

1. In the left navigation, select **Integrations** and on the tile for your compliance solution provider, select **Configure**.
2. In the Integration window, next to **Add policy for manual release of quarantined transfers**, select **Start**.
The **Add policy for manual release of quarantined transfers** window opens, displaying your previously configured risk scores.
*Example using Elliptic integration*
![Policy manual release quarantined transfer](/assets/policy-manual-release-quarantined-transfers.000b9a47328e81eb205cddfa3f50486fd5c0c430535e6a9700e93c9b6cf63ca3.93c15c9d.png)
3. In the **Policy name** field, change the name to a unique name of your choosing.
4. In the **Role** fields, select the amount of users and the role type from the drop-down list, for example **1** and **Admin**.
5. If you want two or more different role types to be required for approving quarantine releases, select the **AND** condition. If you want either the role you already defined or another role to be required for approving quarantine releases, select **OR**.
6. Repeat step 4, for example **1** and **Compliance manager**.
7. *Optional:* If you wish to set up additional conditions that must be met for the approval of quarantined releases workflow, select **Add condition** and repeat step 4.
8. When you're done adding all conditions, select **Submit for approval**.
9. On your security device or the desktop app, sign the operation. For more information, see [Sign intents](/pt-br/products/custody/identity-and-access/authentication/ui-authentication#sign-ui-operations).


## Release quarantined transfers with the SDK

After this policy takes effect, each release is a `v0_ReleaseQuarantinedTransfers` intent that the approvers you configured must approve before it executes. Before you release transfers, get the ID of the account that holds the funds and the IDs of the quarantined transfers. For the request body and the API procedure, see [Release quarantined assets](/pt-br/products/custody/transactions/send-and-receive/receive-assets-api#release-quarantined-assets).

The SDK examples assume a configured client. See [Integrate via SDK](/pt-br/products/custody/get-started/integrate-via-sdk). The following examples release a quarantined transfer:

API
Call the [Propose an intent](/pt-br/products/custody/reference/api/openapi/intents/createintent) operation with a `v0_ReleaseQuarantinedTransfers` payload, as described in [Release quarantined assets](/pt-br/products/custody/transactions/send-and-receive/receive-assets-api#release-quarantined-assets).

TypeScript
```typescript
const pending = await client.transactions.releaseQuarantine(
  accountId,
  [transferId],
  { targetDomainId: domainId },
);

await pending.waitAccepted(60_000);
// Returns after the policy approvers approve and the release executes.
await pending.waitExecuted(3_600_000);
```

Java
The Java SDK has no dedicated release method. Build the payload and submit it with `Envelope.submitIntent`.

```java
import com.ripple.custody.Envelope;
import com.ripple.custody.PendingIntent;
import com.ripple.custody.models.CoreV0ReleaseQuarantinedTransfers;
import java.util.List;

CoreV0ReleaseQuarantinedTransfers payload = new CoreV0ReleaseQuarantinedTransfers()
    .accountId(accountId)
    .transferIds(List.of(transferId))
    .type(CoreV0ReleaseQuarantinedTransfers.TypeEnum.V0_RELEASE_QUARANTINED_TRANSFERS);

PendingIntent pending = Envelope.submitIntent(client.getConfig(), payload, domainId, null);

pending.waitAccepted(60);
// Returns after the policy approvers approve and the release executes.
pending.waitExecuted(3600);
```

Python
```python
pending = client.transactions.release_quarantine(
    account_id,
    [transfer_id],
    target_domain_id=domain_id,
)

pending.wait_accepted(60)
# Returns after the policy approvers approve and the release executes.
pending.wait_executed(3600)
```

To release quarantined transfers automatically instead, see [Automate release with the SDK](/pt-br/products/custody/compliance/transaction-screening/automatic-quarantine-release-policy#automate-release-with-the-sdk).