Aliases
Unique IDs that retain all the essential information about the data without compromising its security.
Given a list of aliases, retrieves all associated values stored in the vault.
NOTE: This endpoint may expose sensitive data. Therefore, it is disabled by default. To enable it, please contact your VGS account manager or drop us a line at[email protected].
Comma-separated list of aliases to reveal.
["tok_sandbox_5UpnbMvaihRuRwz5QXwBFw,tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz"]
PERSISTENT or VOLATILE storage
["PERSISTENT"]
OK
Something went wrong
curl https://api.sandbox.verygoodvault.com/aliases?aliases={{alias1}},{{alias2}}?storage=PERSISTENT \
-u "$USERNAME:$PASSWORD"
{
"data": {
"tok_sandbox_5UpnbMvaihRuRwz5QXwBFw": {
"value": "476673481",
"classifiers": [
"bank-account"
],
"aliases": [
{
"value": "tok_sandbox_5UpnbMvaihRuRwz5QXwBFw",
"format": "UUID"
}
],
"created_at": "2019-08-10T11:45:30Z",
"storage": "VOLATILE"
},
"tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz": {
"value": "750360025",
"classifiers": [
"bank-account"
],
"aliases": [
{
"value": "tok_sandbox_9ToiJHedw1nE1Jfx1qYYgz",
"format": "UUID"
}
],
"created_at": "2019-08-10T11:45:30Z",
"storage": "VOLATILE"
}
}
}
Stores multiple values at once & returns their aliases.
Alternatively, this endpoint may be used to associate additional (i.e. secondary) aliases with the same underlying data as the reference alias specified in the request body.
NOTE: You cannot reference the same alias more than once in a single request.
Created
Something went wrong
curl https://api.sandbox.verygoodvault.com/aliases \
-X POST \
-u "$USERNAME:$PASSWORD" \
-H 'Content-Type: application/json' \
-d '{
"data": [
{
"value": "[email protected]",
"classifiers": [
"email_address"
],
"format": "UUID",
"storage": "VOLATILE"
}
]
}'
{
"data": [
{
"value": 122105155,
"classifiers": [
"bank-account"
],
"aliases": [
{
"alias": "tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e",
"format": "UUID"
}
],
"created_at": "2019-05-15T12:30:45Z",
"storage": "PERSISTENT"
}
]
}
Deletes multiple aliases.
Format for batch requests (limit 20)
No Content
No content
Not Found
curl -v https://api.sandbox.verygoodvault.com/aliases/delete -d \
'{"storage":"VOLATILE","data":["tok_whjuj6F8r3f2KeCpY7RPCE"]}' \
-H 'Content-Type: application/json' \
-u "$USERNAME:$PASSWORD"
No content
Retrieves a stored value along with its aliases.
NOTE: This endpoint may expose sensitive data. Therefore, it is disabled by default. To enable it, please contact your VGS account manager or drop us a line at[email protected].
Alias to operate on.
tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
PERSISTENT
Possible values: OK
Something went wrong
curl https://api.sandbox.verygoodvault.com/aliases/{{alias}}?storage=PERSISTENT \
-u "$USERNAME:$PASSWORD"
{
"data": [
{
"value": 122105155,
"classifiers": [
"bank-account"
],
"aliases": [
{
"alias": "tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e",
"format": "UUID"
}
],
"created_at": "2019-05-15T12:30:45Z",
"storage": "PERSISTENT"
}
]
}
Apply new classifiers to the value that the specified alias is associated with.
Alias to operate on.
tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
PERSISTENT
Possible values: No Content
No content
Something went wrong
curl https://api.sandbox.verygoodvault.com/aliases/{{alias}} \
-X PUT \
-u "$USERNAME:$PASSWORD" \
-H 'Content-Type: application/json' \
-d '{
"data": {
"classifiers": [
"credit-cards", "PII"
]
}
}'
No content
Removes a single alias.
Alias to operate on.
tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e
PERSISTENT
Possible values: No Content
No content
Something went wrong
curl https://api.sandbox.verygoodvault.com/aliases/{{alias}}?storage=PERSISTENT \
-X DELETE \
-u "$USERNAME:$PASSWORD"
No content