---
title: "Execute pii-detector evaluator"
method: POST
path: "/v2/evaluators/pii-detector/execute"
tags: ["evaluators"]
---

# Execute pii-detector evaluator

`POST /v2/evaluators/pii-detector/execute`

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)

## Request body

- RequestPIIDetectorRequest
  - `config` RequestPIIDetectorConfigRequest
    - `probability_threshold` number
  - `input` RequestPIIDetectorInput, required
    - `text` string, required

## Response `200`

OK

- ResponsePIIDetectorResponse
  - `has_pii` boolean

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.net/traceloop/apis/traceloop-api.md) · [All operations](https://skmtc.net/traceloop/apis/traceloop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traceloop/traceloop-api/versions/9c12a04a5947/schema)
