# 2s Text Redaction API

> 2s Text Redaction API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-15).

Automatically detects and redacts sensitive personally identifiable information (PII) and confidential data from free-form text

## Facts

- Endpoint: POST https://2s.io/api/text/redact
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-text-redaction-api-dda0afdf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I24os6MYwzfavu1z5oZ3i

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 2s-text-redaction-api-dda0afdf -d '<json body>'
```

Example prompt: Can you redact all personal information from this text before I save it: 'John Smith called from 555-867-5309, his SSN is 123-45-6789 and he lives at 42 Maple Street, Springfield'?

## When to prefer this

Use this endpoint when you need to programmatically strip PII or sensitive data from arbitrary free-form text before storing, logging, sharing, or analyzing it. Prefer this over manual regex-based approaches when the text contains varied PII types (names, phone numbers, emails, SSNs, addresses). Ideal for compliance workflows, data anonymization pipelines, and pre-processing steps before sending text to third-party services.

## Known failure modes

- Text exceeds 256 KB limit — request rejected with payload too large error
- Empty or missing text field — returns validation error
- Ambiguous or context-dependent PII may not be fully detected — partial redaction possible
- Network timeout for very large documents near the size limit

## How this service works

The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.

## Output

Returns the input text with sensitive entities (names, phone numbers, emails, SSNs, addresses, and other PII) replaced with redaction placeholders, leaving non-sensitive content intact.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Text to redact (up to 256 KB)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-text-redaction-api-dda0afdf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
