Skip to main content
POST
/
v3
/
process
/
text
/
reidentify
Reidentify Text
curl --request POST \
  --url https://api.private-ai.com/deid/v3/process/text/reidentify \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "processed_text": [
    "<string>"
  ],
  "entities": [
    {
      "processed_text": "<string>",
      "text": "<string>"
    }
  ],
  "model": "<string>"
}
'
[
  "<string>"
]

Authorizations

x-api-key
string
header
required

Headers

x-api-key
string
default:""

Body

application/json
processed_text
string[]
required

The text with redaction markers. The markers will be replaced with the entity texts. E.g. Hi [NAME_1], nice to meet you.

entities
ReIdentifyTextRequestEntity · object[]
required

A list of all entities found in the text.

model
string

The LLM that provides the completions. E.g. gpt3.5-turbo. While optional, this is used to improve the re-identification process by accounting for the model's unique behaviour surrounding redaction markers

Response

Successful Response