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

# Unarchiving a customer

Unarchiving a customer is not possible using the Stigg app UI. It can be done using Stigg's API.

When a customer is unarchived:

1. They reappear in the Stigg app UI.
2. They are returned by the Stigg API and SDKs.
3. Their entitlements are recalculated.

<Note>
  The customer's PII (name and email address) that was nullified upon archiving is not restored.
</Note>

## Using the GraphQL API

```graphql theme={null}
mutation UnarchiveCustomer($input: UnarchiveCustomerInput!) {
  unarchiveCustomer(input: $input) {
    customerId
    name
    email
  }
}
```

```json theme={null}
{
  "input": {
    "customerId": "customer-123"
  }
}
```

## Using the REST API

```
POST /api/v1/customers/{id}/unarchive
```
