Skip to content
Webfold Docs
Esc
↑↓navigate↵open⌘Jpreview

Check text for personal data

Same detection as redaction but returns only the findings and a clean flag, for gating a pipeline. The redacted text is not returned. Metered as pii.scan.

POST/v1/pii/scan
Authorization
AuthorizationBearer token (JWT) · headerrequired

Bearer API key issued for your account. Send Authorization: Bearer <key>.

Request body
requiredapplication/json
textstringrequired

Up to 1 MiB.

Responses
200

Findings

cleanbooleanrequired
countintegerrequired
entity_typesstring[]required
findingsPiiFinding[]required
Show properties
Array of PiiFinding
entity_typestringrequired
startintegerrequired

Byte offset of the first byte of the span.

endintegerrequired

Byte offset one past the last byte.

scorenumberrequired

0 to 1.

400

Bad request

string
401

Missing or invalid bearer token

string
403

Billing or plan entitlement blocked the request

string
502

Upstream service (arXiv, YouTube, web page) failed

string
503

The backing service is not configured or is busy

string
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.webfold.ai/v1/pii/scan' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "string"
}'
Response
{
  "clean": true,
  "count": 0,
  "entity_types": [
    "string"
  ],
  "findings": [
    {
      "entity_type": "EMAIL",
      "start": 0,
      "end": 0,
      "score": 0
    }
  ]
}