Api Endpoint

pii-redact

Detect and transform structured PII in a text blob. Returns the sanitized text plus a findings report. Modes: redact, mask, hash, or reversible tokenize (the token map is returned in the response — nothing is stored). Optional per-type mode overrides and an allow-list. Structured PII indicators, not legal advice.

Open interactive test console

Offering

Provider
payai.agentstools.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Security
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://payai.agentstools.dev/pii/redact
MIME type
application/json
First seen
2026-10-16T02:00:03.055Z
Last seen
Tags
pii, privacy, gdpr, hipaa, pci

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "payTo": "AytHnvc6bZx1ALTy7b5Px7hcavoSYszG9aeKvDcZ8R1u"
  }
]

Observed health

Status
Reachable
Latest latency
374 ms
Average latency
1084 ms
HTTP status
405
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "body": {
    "mode": "redact",
    "text": "Email jane.doe@example.com, card 4111 1111 1111 1111."
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
}

Output schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "properties": {
        "body": {
          "required": [
            "text"
          ],
          "properties": {
            "mode": {
              "enum": [
                "redact",
                "mask",
                "hash",
                "tokenize"
              ],
              "type": "string",
              "description": "Default transform applied to every entity"
            },
            "salt": {
              "type": "string",
              "description": "Optional salt mixed into hash mode"
            },
            "text": {
              "type": "string",
              "description": "The text to sanitize"
            },
            "entities": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Optional allow-list of entity types to act on (default: all). See GET /pii/recognizers."
            },
            "mode_overrides": {
              "type": "object",
              "description": "Optional per-entity-type transform, keyed by type"
            },
            "include_positions": {
              "type": "boolean",
              "description": "Include character start/end offsets per finding"
            }
          }
        },
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "example": {
          "type": "object"
        }
      }
    }
  }
}