# apiacre.com Document Redact

> apiacre.com Document Redact is a paid API for AI agents from apiacre.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Detects and redacts common personal identifiers (PII) from supplied text, returning a sanitized version.

## Facts

- Endpoint: POST https://apiacre.com/v1/document/redact
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apiacre-com-document-redact-044b4fcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-HnY770m0fGwW8nnaCwtQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability apiacre-com-document-redact-044b4fcb -d '<json body>'
```

Example prompt: Scan this text and redact any personal identifiers like names, emails, phone numbers, or SSNs — give me back the cleaned version with the sensitive parts masked out.

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call PII redaction step in an automated pipeline — especially when you don't want to run a full NLP model locally. Ideal for sanitizing text before storage, logging, or sharing with third parties. Prefer this over general-purpose LLM prompting for redaction when you need consistent, deterministic masking rather than generative rewriting.

## Known failure modes

- Empty or missing text body returns a validation error
- Extremely long documents may exceed payload size limits
- Uncommon or domain-specific identifiers may not be detected
- Non-Latin scripts or languages may have reduced detection accuracy
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

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.

## Output

Returns the input text with personal identifiers replaced or masked, along with metadata about the detected PII spans (types and positions). The sanitized text is safe for storage, sharing, or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "types": {
   "type": "array",
   "items": {
    "enum": [
     "email",
     "phone",
     "ipv4",
     "ipv6",
     "credit_card",
     "ssn",
     "iban"
    ],
    "type": "string"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "text": "Contact [REDACTED_EMAIL] about invoice card [REDACTED_CREDIT_CARD].",
   "total": 2,
   "counts": {
    "ipv4": 0,
    "ipv6": 0,
    "email": 1,
    "phone": 0,
    "credit_card": 1
   },
   "detector": {
    "version": "apiacre-pii-redaction/2",
    "overlapSafe": true,
    "deterministic": true,
    "validatedTypes": [
     "credit_card",
     "iban",
     "ipv4",
     "ipv6",
     "ssn"
    ],
    "networkRequestsMade": 0
   },
   "findings": [
    {
     "end": 27,
     "type": "email",
     "start": 8,
     "characters": 19,
     "placeholder": "[REDACTED_EMAIL]"
    }
   ],
   "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",
   "selectedTypes": [
    "email",
    "phone",
    "ipv4",
    "ipv6",
    "credit_card",
    "ssn",
    "iban"
   ],
   "findingsReturned": 2,
   "findingsTruncated": false,
   "redactedCharacters": 38
  },
  "meta": {
   "cached": false,
   "sources": [],
   "warnings": [],
   "duration_ms": 42,
   "next_actions": []
  },
  "service": "document.redact",
  "version": "1",
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apiacre-com-document-redact-044b4fcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apiacre.com](https://www.zero.xyz/host/apiacre.com/llms.txt)
