{"uid":"cap_cu0eo_OzQpg2akO5x2KOx","slug":"agentics-pii-redaction-x402rail-net-b801c709","name":"Agentics PII Redaction (x402rail.net)","description":"Correctness-critical services for autonomous AI agents","url":"https://x402rail.net/v1/redact","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"content":{"type":"string","description":"Text to redact. Capped at the published limit (GET /v1/policy -> limits.extract.maxContentChars)."},"redactionMode":{"enum":["remove","mask","pseudonymize"],"type":"string","default":"remove","description":"How to replace detected spans: `remove` → `[REDACTED]` (default); `mask` → format-preserving partial masking (e.g. `a***a@e***e.com`, `***-**-6789`); `pseudonymize` → stable keyed tokens (`pii_<16 hex>`)."}}},"responseSchema":{"type":"json","example":{"redacted":"Contact a***a@e***e.com or call ***-***-0100.","detectors":["email","phone"],"attestation":{"id":"8f14e45f-ceea-4e2a-9b1a-3c2e6f0a1b2c","hash":"9f2b1c…","algorithm":"ed25519","createdAt":"2026-06-18T12:00:00.000Z","publicKey":"-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----\n","signature":"MEUCIQ…","detectorVersion":"redact-v1"},"redactionMode":"mask","attestationUrl":"https://x402rail.net/v1/attest/8f14e45f-ceea-4e2a-9b1a-3c2e6f0a1b2c"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BKpzE2ouLzltsIUsvwwHC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and redacts personally identifiable information (PII) from text using one of three modes: remove, mask, or pseudonymize — with a cryptographic attestation of the result.","exampleAgentPrompt":"Can you redact the PII from this text using mask mode so emails and phone numbers are partially hidden but still recognizable in format: 'Please contact alice@example.com or call 555-867-0100 to schedule your appointment'?","exampleUseCases":null,"resultDescription":"Returns a JSON object containing: the redacted version of the input text, an array of detector labels identifying what PII types were found (e.g. 'email', 'phone'), the redaction mode applied, and a cryptographic attestation object (id, hash, algorithm, public key, signature, detector version, timestamp) plus a URL to retrieve the attestation independently.","failureModes":["Text exceeds maxContentChars limit from GET /v1/policy — returns an error indicating content is too long","Invalid redactionMode enum value — returns a validation error","Payment not received or x402 payment header missing/invalid — returns 402 Payment Required","Malformed JSON body — returns 400 Bad Request","Service unavailable — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need not just redacted text but also a verifiable cryptographic proof that redaction occurred — ideal for compliance workflows, audit trails, or any pipeline where downstream consumers need to trust that PII was removed. The pseudonymize mode is particularly useful when stable, consistent tokens are needed across multiple documents. Prefer this over generic regex-based redaction when attestation and detector versioning matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:49:39.034Z","isFirstParty":false}