/v1/pii/detect
Identical to `POST /pii/detect`.
Identical to POST /pii/detect.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/pii/detect" \ -H "Content-Type: application/json" \ -d '{}'{ "object": "pii.detect", "model": "string", "results": [ { "text": "string", "entities": [ { "entity_type": "string", "text": "string", "score": 0.1, "start": 0, "end": 0 } ] } ], "usage": { "prompt_tokens": 0, "total_tokens": 0 }}/pii/detect POST
Detect PII entities. Runs a token-classification model and returns entity spans with character offsets relative to the input. Provide either `text` (single) or `texts` (batch). `threshold` overrides the per-model default. `types` filters the entity types returned.
/pii/redact POST
Detect and redact PII. Runs detection then applies the `mode`: - `mask` (default): replace each entity with `mask_char` (default `*`) repeated to the entity length. - `remove`: drop the entity text entirely.
RS Infer