Skip to main content
POST
/
v2
/
evaluators
/
execute
/
pii-detector
Execute pii-detector evaluator
curl --request POST \
  --url https://api.traceloop.com/v2/evaluators/execute/pii-detector \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "text": "Please contact John Smith at [email protected] or call 555-123-4567."
  },
  "config": {
    "probability_threshold": 0.8
  }
}
'
{
  "has_pii": false
}

Authorizations

Authorization
string
header
required

Type "Bearer" followed by a space and JWT token.

Body

application/json

Request body

input
object
required
config
object

Response

OK

has_pii
boolean
Example:

false