LLM
PII & secret scanner API
Scans a prompt or text for PII and secret patterns (email, phone, SSN, Luhn-checked credit card, IPv4, AWS access key, JWT) and returns counts by type, exact match locations, and a redacted copy with each hit masked. Answers 'is there PII in this prompt before I send it to a model?', 'how do I redact secrets from this text?'.
Price$0.03per request
MethodPOST
Route/v1/llm/pii-scan
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
llmpiiredactprivacysecretscompliancescanagent
API URL
Integration docshttps://x402.hexl.dev/v1/llm/pii-scanExample request
{
"text": "Email me at bob@x.com or call 415-555-1234, ssn 123-45-6789."
}Example response
{
"found": true,
"count": 3,
"byType": {
"email": 1,
"phone": 1,
"ssn": 1
},
"matches": [
{
"type": "email",
"value": "bob@x.com",
"index": 12
},
{
"type": "phone",
"value": "415-555-1234",
"index": 30
},
{
"type": "ssn",
"value": "123-45-6789",
"index": 48
}
],
"redacted": "Email me at [REDACTED] or call [REDACTED], ssn [REDACTED]."
}Input schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"examples": [
"Email me at bob@x.com or call 415-555-1234, ssn 123-45-6789."
]
},
"redactWith": {
"type": "string",
"default": "[REDACTED]"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}