Scan Text
Scan text for sensitive data. Runs the configured detection entities over the request text and returns every match as a character range with its entity type and confidence score. Detections below the confidence threshold are omitted.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for the scan endpoint: the text to inspect and which entity types to detect.
Response Body
application/json
application/json
curl -X POST "https://example.com/scan" \ -H "Content-Type: application/json" \ -d '{ "text": "string" }'{ "results": [ { "start": 0, "end": 0, "score": 0, "entity_type": "string" } ], "usage": { "input_tokens": 0, "inference_ms": 0 }}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}Anonymization
Learn how to use Quba's Anonymization API to anonymize sensitive data in text using various techniques like replacement, masking, hashing, and encryption.
Anonymize Text POST
Anonymize sensitive data in text. Scans the request text for the entities targeted by each supplied rule and applies that rule's operation (replace, redact, mask, hash, or encrypt) to every match. Returns the anonymized text together with a record of each transformation, including the original and resulting character ranges.