Anonymize Text
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.
Authorization
ApiKeyAuth In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request body for the anonymize endpoint.
Carries the text to anonymize and the list of de-identification rules to
apply. See AnonymizationCommand for field-level details.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/anonymize" \ -H "Content-Type: application/json" \ -d '{ "text": "string" }'{ "text": "string", "results": [], "usage": { "input_tokens": 0, "inference_ms": 0 }}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string", "input": null, "ctx": {} } ]}Scan Text POST
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.
Health GET
Health check. Returns a plain-text message confirming the service is running. Use this as a liveness/readiness probe.