curl --request POST \
--url https://api.scooba.ai/v1/anonymize \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"text": [
"<string>"
],
"detection_config": {
"entities": [
"<string>"
]
},
"anonymization_config": {
"deidentification_method": "REDACT",
"threshold": 0.5
}
}'
{
"anonymized_text": [
"<string>"
],
"detected_entities": [
{
"text": "<string>",
"label": "<string>",
"span": {
"start": 123,
"end": 123
},
"confidence": 123,
"alternatives": {
"label": "<string>",
"confidence": 123
},
"anonymized_text": "<string>"
}
]
}
Anonymize a list of text
curl --request POST \
--url https://api.scooba.ai/v1/anonymize \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"text": [
"<string>"
],
"detection_config": {
"entities": [
"<string>"
]
},
"anonymization_config": {
"deidentification_method": "REDACT",
"threshold": 0.5
}
}'
{
"anonymized_text": [
"<string>"
],
"detected_entities": [
{
"text": "<string>",
"label": "<string>",
"span": {
"start": 123,
"end": 123
},
"confidence": 123,
"alternatives": {
"label": "<string>",
"confidence": 123
},
"anonymized_text": "<string>"
}
]
}
Successful response
The response is of type object
.