---
updatedAt: 2026-01-16T13:01:08.000Z
agentTools:
  projectIndex: https://docs.pci-proxy.com/llms.txt
---

# Convert tokens

Update a legacy token's format to the latest Alias 2.0 format.

In order to get access to our full set of features, including Network Tokenization, tokens need to be in the Alias 2.0 format. Converting legacy tokens to this format is simple.

Please refer to the [API Reference](https://docs.pci-proxy.com/reference/aliasesconvert) to get a detailed view of all required and optional fields.

```curl masked alias to Alias 2.0
curl --request POST \
  --url 'https://api.sandbox.datatrans.com/v1/aliases' \
  --header 'Authorization: Basic {{basicAuth}}' \
  --header 'Content-Type: application/json' \
  --data '{
	"legacyAlias": "424242SKMPRI4242"
}'
```

```json response: token in Alias 2.0 format
{
  "alias": "AAABdJdXVGPssdexyrAAAbuFU885AFAk"
}
```

<br />

> ❗️ This API is exclusively authorized for migrating from Masked Alias to Alias 2.0.