Quba
API References

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.

POST
/anonymize

Authorization

ApiKeyAuth
x-api-key<token>

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": {}    }  ]}
© 2026 Quba. All rights reserved.