80trust / 100
Document Redact
by API Acre in Documents & files
x402 APIPassing, checked 10 min ago
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.
POST https://apiacre.com/v1/document/redact
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 67 ms typical, 67 ms slowest 5%
- Last check
- 10 min ago
- Next check
- in 19 min
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://apiacre.com/v1/document/redact" \
-H "content-type: application/json" \
-d '{"text":"Contact [email protected] about invoice card 4242 4242 4242 4242."}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdocument%2Fredact
const res = await pay("https://apiacre.com/v1/document/redact", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"text":"Contact [email protected] about invoice card 4242 4242 4242 4242."}),
});
console.log(await res.json());Example input
{
"text": "Contact [email protected] about invoice card 4242 4242 4242 4242."
}Example output
{
"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"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 10 min ago | Passed | 402 | 126 ms | $0.01 |
| 5 h ago | Passed | 402 | 67 ms | $0.01 |