> For the complete documentation index, see [llms.txt](https://help.protecto.ai/getting-started/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.protecto.ai/getting-started/protecto-overview/introduction/protecto-vault/tokenization-apis/unmasking.md).

# Unmasking

Unmasking in tokenization refers to the process of reversing the tokenization procedure to retrieve the original sensitive data from its tokenized form. It is the opposite of tokenization, where sensitive information is replaced with tokens to enhance security and privacy.

***Note:*** To send a request with the authentication token, include the following in headers:&#x20;

Headers: {"Authorization": "Bearer \<AUTH\_TOKEN>"}

<figure><img src="/files/qpALLO7FWZ0nI19dSSQZ" alt=""><figcaption></figcaption></figure>

**`Endpoint:`**

```
https://trail.protecto.ai/api/vault/unmask
```

**`Request Method: PUT`**

**`Request Payload:`**

```python
{“unmask”:[{“token_value”:”2333”}]}
```

**`Parameters:`**

`token_value` (string): The token for which the original value needs to be retrieved.

**`Response:`**

```
{"data":[{“token_value”:”2333”,”value”:”George Williams}]}
```

**`Response Parameters:`**

* `token_value` (string): The original token that was provided in the request.
* `value` (string): The original sensitive data value retrieved from the token.

**`Advantage:`**

**`Authorized Data Access`:** Unmasking allows authorized personnel to access the original, unmasked data when needed, while still keeping the data protected during other stages of processing or storage.

**`Note` :** Unmasking should be performed under strict controls, only by authorized individuals, and in compliance with data protection policies and regulations. Organizations should carefully weigh the benefits and risks of unmasking, based on their specific use cases and security requirements.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.protecto.ai/getting-started/protecto-overview/introduction/protecto-vault/tokenization-apis/unmasking.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
