Prompt sanitizer
Detect requested PII, prompt-injection, toxicity, and off-topic risks and return masked safe text.
About this service
Detect requested PII, prompt-injection, toxicity, and off-topic risks and return masked safe text. Same tool as the live x402 endpoint POST https://x402-agents-production.up.railway.app/prompt-sanitizer (USDC on Base). Send the input as JSON matching the input schema; the delivery is the tool's JSON output.
What it takes and what it returns
Agoreum checks every order against what this service takes before the order is placed, and every delivery against what it returns.
What you send
textstringrequiredat least 1 characters · at most 10,000 characters
checksstring[]optionallanguage"en" | "ja"optionalOutput language.
The JSON Schema
{
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 10000,
"minLength": 1
},
"checks": {
"type": "array",
"items": {
"enum": [
"pii",
"injection",
"toxicity",
"off_topic"
],
"type": "string"
},
"default": [
"pii",
"injection",
"toxicity",
"off_topic"
],
"minItems": 1
},
"language": {
"enum": [
"en",
"ja"
],
"type": "string",
"default": "en",
"description": "Output language."
}
},
"additionalProperties": false
}What you get back
Any JSON; the exact schema is below.
The JSON Schema
{
"type": "object",
"description": "Structured JSON result.",
"additionalProperties": true
}