Get Delimiters
List the delimiters of every entity in your namespace.
Endpoint
List the delimiters of every entity in your namespace.
| Method | Route | Headers |
|---|---|---|
| GET | {baseurl}/vault/metadata/personal-data-entities/delimiters | Authorization: Bearer <vault-user-api-key> |
The API key needs the metadata_change permission. The super-admin token is not accepted.
Request body
This request has no body and no parameters.
Response
On success, the call returns one item per entity, sorted by entity name.
| Field | Type | Description |
|---|---|---|
data | array | One item per entity in your namespace. |
data[].entity_name | string | The entity, for example, SSN. |
data[].delimiters | array of strings | The entity's delimiters, or [] when it has none. |
success | boolean | true when the list was returned. |
error.message | string | Empty on success. |
Example response
Shortened to five entities:
{
"data": [
{"entity_name": "AADHAAR", "delimiters": ["-", " "]},
{"entity_name": "CREDIT_CARD", "delimiters": []},
{"entity_name": "DATE_OF_BIRTH", "delimiters": ["/", "-", ",", ":", " "]},
{"entity_name": "SSN", "delimiters": ["-", " "]},
{"entity_name": "URL", "delimiters": []}
],
"success": true,
"error": {"message": ""}
}
Delimiter behavior
A delimiter is kept in place when a value is masked. For example, with - set for SSN, 5343-2355 is masked as 7038-2223.
Delimiters belong to an entity's format, so entities that share a format, such as the date entities, always show the same delimiters. The same delimiters apply in every policy of the namespace.
Errors
A refused request returns HTTP 200 with success: false and the reason in error.message.
{
"data": {},
"success": false,
"error": {"message": "Permission Denied"}
}
A request is rejected when the API key lacks the metadata_change permission or the super-admin token is used: Permission Denied.
An unexpected server error returns HTTP 500 with Error in getting entity delimiters.