> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bango.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Recover account for product

### What is Account Recovery?

Account recovery is the process of restoring consumer access to an entitlement (content) by generating a recovery URL that allows tee consumer to relink or regain access to their account.

The Account Recovery API allows a reseller to recover or unlink a consumer's account associated with an entitlement using the following endpoint.

```yaml theme={null}
POST /v1/entitlement/accountRecovery/{entitlementId}
```

The URLs will vary depending on the region. Head to out API Page for full details.

The request is the following:

<Frame>
  <img src="https://mintcdn.com/bango/bsJCbK2pCZX_L2vy/images/image-25.png?fit=max&auto=format&n=bsJCbK2pCZX_L2vy&q=85&s=a654c2be9a7716060f9c5ae0a7397d5c" alt="Image" width="856" height="149" data-path="images/image-25.png" />
</Frame>

The request requires two mandatory parameters:

* `resellerKey` — a static identifier representing the reseller within the Bango platform
* `requestType` — specifies the operation to perform and must be either:
  * `ACCOUNT_RECOVERY`
  * `ACCOUNT_UNLINK`

<Tip>
  Account recovery can only be performed when the entitlement is in a valid state. If the entitlement is not eligible for recovery, the API returns an HTTP `409` response with:

  * `INVALID_STATE`
  * `"The entitlement is not in the correct state to be recovered"`
</Tip>

When an account is successfully unlinked, the entitlement is no longer associated with the consumer's account. As a result, the consumer may lose access to the entitlement until an account recovery action is completed. Conversely, a linked entitlement is associated with a merchant customer account and remains accessible to the customer.
