$ man detect-pii
/detect-pii
NAME
detect-pii — pii detector / data leak scanner
SYNOPSIS
POST https://x402.agentutility.ai/detect-pii
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
PII detector / data leak scanner. Emails, phones, SSNs, credit cards, addresses, names, IPs, API tokens. Returns matches + risk_level. Optional redaction with [TYPE] tokens.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| text | string | Raw text to scan for PII like emails, phones, SSNs, credit cards, addresses, names, IPs, and API tokens. | required |
| redact | boolean | Return text with matches replaced by [TYPE]. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| matches | array | Array of detected PII items, each with the matched value, type label, and character offset in the text. |
| match_count | number | Total number of PII matches found across all types. |
| pii_density | number | Ratio of PII characters to total input characters, roughly 0 to 1. |
| risk_level | string | Overall risk bucket such as none, low, medium, or high based on match types and density. |
| redacted_text | string | Input text with each match replaced by a [TYPE] token like [EMAIL] or [SSN] when redaction is requested. |
| input_chars | number | Character length of the submitted text. |
| model | string | Identifier of the detection model or ruleset version used for this scan. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/detect-pii \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# MCP packages on npm under # @agentutility/mcp-* (one per cluster) # # Catalog + install: # https://mcp.agentutility.ai # # Or call detect-pii directly over HTTP — see above.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- piiprivacyredactcompliancesecurity
- env
- VENICE_API_KEY
- methods
- POST
- cluster
- wordmint
- price
- $0.02 USDC per call
ADJACENT — other endpoints in wordmint
| endpoint | description | price |
|---|---|---|
| classify | Zero-shot text classifier. | $0.02 |
| classify-text | Text classifier / zero-shot classifier / category sorter. | $0.02 |
| describe-image | AI image descriptor / vision LLM. | $0.02 |
| email-draft | AI email writer / cold outreach / follow-up generator. | $0.02 |
| extract | Named entity extractor / NER. | $0.02 |
| moderate-content | Content moderation / safety classifier / OpenAI-style toxicity API. | $0.02 |
| resume-scorer | AI resume scorer / ATS keyword analyzer. | $0.02 |
| rewrite-tone | Tone rewriter / paraphraser / writing style changer. | $0.02 |
SEE ALSO