Skip to main content

Detect PII data

post
/api/pvlt/1.0/data/analysis/detect

Detects whether there is PII data in text strings.

This feature is enabled on Vault SaaS only. If you're interested in running it with a self-hosted deployment, please contact us.

The role performing this operation must have the CapAnalysisDetect capability.

See identity and access management for more information about how capabilities are used to control access to operations and policies are used to control access to data.

Request

Query parameters

  • adhoc_reason - string

    An ad-hoc reason for accessing the Vault data. Required when reason is set to Other.

  • reason - string

    Details of the reason for requesting the property. The default is set when no access reason is provided and PVAULT_SERVICE_FORCE_ACCESS_REASON is false.

  • custom_audit - string

    Custom audit information to be included in the audit log.

  • reload_cache - boolean

    Reloads the cache before the action.

Request body

The detect request.

object required*
  • language - string

    Language of the text.

  • text - array of strings required*

    A list of text strings to locate and identify PII in.

    Example
    [
    "{\"ip\":\"1.2.3.4\",\"email\":\"pii@example.com\"}"
    ]
Example
{
"language": "en",
"text": [
"{\"ip\":\"1.2.3.4\",\"email\":\"pii@example.com\"}"
]
}

Possible responses

The request is successful.

object required*
  • contains_pii - boolean required*

    Whether PII data is detected.

Example
{
"contains_pii": true
}

Try the API

Authorization

Query parameters

Request body

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples

Example