API Acre · Document Redact

by API Acre

POSTBaseSolana

$0.01

per call · USD Coin on Base

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.

Endpoint

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

2

Calls / 30d

1

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/document/redact", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "text": "Contact analyst@example.com about invoice card 4242 4242 4242 4242."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/document/redact" \
  -H "Content-Type: application/json" \
  -d '{"text":"Contact analyst@example.com about invoice card 4242 4242 4242 4242."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

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

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from API Acre & similar services