v1

latestOpenAPI 3.0.02026-07-1346146138.4 KB
evaluators

Execute pii-detector evaluator

Detect personally identifiable information in text

Request Body:

  • input.text (string, required): The text to scan for personally identifiable information
  • config.probability_threshold (float, optional): Detection threshold (default: 0.8)
post/v2/evaluators/pii-detector/execute

Request body

Example request

{
  "config": {
    "probability_threshold": 0.8
  },
  "input": {
    "text": "Please contact John Smith at john.smith@email.com or call 555-123-4567."
  }
}

Response

OK

has_piiboolean