Skip to content
document · documents · data · pii · personal-data · redaction · sanitize · privacy · document · compliance · ipv6 · iban · luhn

PII and personal-data redaction

Deterministically detect and redact PII and personal data in supplied text with overlap-safe matching for emails, phone numbers, validated IPv4 and IPv6 addresses, Luhn-valid payment cards, valid-checksum IBANs, and structurally valid US Social Security numbers.

$0.01 USDCBase + Solanax402 v2POST
Pay $0.01 USDC and run in your browserView free result sample

Endpoint

https://apiacre.com/v1/document/redact

Send the JSON body below. An unpaid request returns HTTP 402 with a PAYMENT-REQUIRED header; an x402-compatible buyer signs the requirement and retries with PAYMENT-SIGNATURE.

Pay $0.01 USDC and run in your browser

Official Coinbase agent path

Coinbase Agentic Wallet can satisfy this x402 request in one command. Running it may pay automatically, so --max-amount is fixed to $0.01 USDC in atomic units. Copying the command does not install, authenticate, sign, or pay; review the request and use a separate low-value wallet before running it.

npx --yes awal@latest x402 pay https://apiacre.com/v1/document/redact \
  -X POST \
  -d '{"text":"Contact [email protected] about invoice card 4242 4242 4242 4242."}' \
  --max-amount 10000 \
  --json

Coinbase pay-for-service documentation · Buyer setup and wallet safety

Alternative third-party AgentCash commands

Run check first without payment. Its fetch command may automatically pay up to the exact listed price.

npx --yes agentcash@latest check https://apiacre.com/v1/document/redact
npx --yes agentcash@latest fetch https://apiacre.com/v1/document/redact \
  --method POST \
  --header 'content-type: application/json' \
  --body '{"text":"Contact [email protected] about invoice card 4242 4242 4242 4242."}' \
  --payment-protocol x402 \
  --payment-network base \
  --max-amount 0.010

AgentCash CLI documentation

Input example

{
  "text": "Contact [email protected] about invoice card 4242 4242 4242 4242."
}

Response shape

View free static sample JSON

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "document.redact",
  "version": "1",
  "data": {
    "text": "Contact [REDACTED_EMAIL] about invoice card [REDACTED_CREDIT_CARD].",
    "counts": {
      "email": 1,
      "phone": 0,
      "ipv4": 0,
      "ipv6": 0,
      "credit_card": 1,
      "ssn": 0,
      "iban": 0
    },
    "total": 2,
    "selectedTypes": [
      "email",
      "phone",
      "ipv4",
      "ipv6",
      "credit_card",
      "ssn",
      "iban"
    ],
    "findingsReturned": 2,
    "findingsTruncated": false,
    "findings": [
      {
        "type": "email",
        "start": 8,
        "end": 27,
        "characters": 19,
        "placeholder": "[REDACTED_EMAIL]"
      },
      {
        "type": "credit_card",
        "start": 47,
        "end": 66,
        "characters": 19,
        "placeholder": "[REDACTED_CREDIT_CARD]"
      }
    ],
    "redactedCharacters": 38,
    "inputSha256": "04b4432fceb85a844f4a83b4ddabd14dda672c9c94b8c54c020ff06de182d2f6",
    "outputSha256": "7e30afcfe691fb4e6527ee782aaa6cccd68b726687540cb2d6de557cfe921c13",
    "detector": {
      "version": "apiacre-pii-redaction/2",
      "deterministic": true,
      "overlapSafe": true,
      "validatedTypes": [
        "credit_card",
        "iban",
        "ipv4",
        "ipv6",
        "ssn"
      ],
      "networkRequestsMade": 0
    },
    "limitations": [
      "Deterministic patterns do not identify names, street addresses, or every locale-specific identifier.",
      "Review redacted output before treating it as safe for a particular privacy or compliance policy."
    ]
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": [],
    "next_actions": []
  }
}

Complete recipes using this API

These buyer-controlled recipes connect this service to compatible API Acre results. Every step has its own exact price and requires separate authorization.

Try the payment challenge

curl -i -X POST 'https://apiacre.com/v1/document/redact' \
  -H 'content-type: application/json' \
  --data '{"text":"Contact [email protected] about invoice card 4242 4242 4242 4242."}'