PII

Replace personal information such as names, SSNs, and emails in a given text.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
promptstring or list of stringsRequired
replacebooleanRequired
Whether to replace personal information.
replace_methodstringOptional

The method to use (random, fake, category, mask).

entity_listlist of stringsOptional
An array of entity types that the PII check should ignore.

Response

Successful response.
idstring
Unique ID for the PII check.
objectstring

Type of object (pii_check).

createdinteger
Timestamp of when the PII check was created.
checkslist of objects
The set of vectorized data.

Errors

400
Bad Request Error
403
Forbidden Error