Endpoint Examples
Anonymize
Anonymize a list of text
POST
/
v1
/
anonymize
Copy
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
}
}'
Copy
{
"anonymized_text": [
"<string>"
],
"detected_entities": [
{
"text": "<string>",
"label": "<string>",
"span": {
"start": 123,
"end": 123
},
"confidence": 123,
"alternatives": {
"label": "<string>",
"confidence": 123
},
"anonymized_text": "<string>"
}
]
}
Authorizations
Body
application/json
Response
200
application/json
Successful response
The response is of type object
.
Copy
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
}
}'
Copy
{
"anonymized_text": [
"<string>"
],
"detected_entities": [
{
"text": "<string>",
"label": "<string>",
"span": {
"start": 123,
"end": 123
},
"confidence": 123,
"alternatives": {
"label": "<string>",
"confidence": 123
},
"anonymized_text": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.