# 24K Labs PII Redact

> 24K Labs PII Redact is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Redacts PII from text using regex patterns, masking emails, phone numbers, SSNs, credit card numbers, and IP addresses, and returns the cleaned text with per-type match counts.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/pii-redact
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-pii-redact-70e53b50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bcNQekC-xe92K3OQle882

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 24k-labs-pii-redact-70e53b50 -d '<json body>'
```

Example prompt: Can you redact all PII from this text before I store it — mask any emails, phone numbers, SSNs, credit card numbers, and IP addresses, and tell me how many of each were found: 'Call John at 555-867-5309 or email john@example.com; his SSN is 123-45-6789.'

## When to prefer this

Choose this endpoint when you need fast, lightweight, deterministic PII masking using well-known regex patterns for common US-format PII types (email, phone, SSN, credit card, IP). Ideal for pre-storage sanitization, compliance scrubbing, or anonymizing text before sharing. Prefer this over ML-based NER solutions when speed, cost, and predictability matter more than handling edge-case or non-standard PII formats.

## Known failure modes

- Regex-based detection may miss non-standard formats (e.g. phone numbers with unusual delimiters)
- False positives possible when numeric patterns coincidentally match PII formats
- Very long input text may hit payload or timeout limits
- Malformed request body returns a 400 error
- Missing or invalid x402 payment header may result in 402 Payment Required error

## How this service works

Regex-based PII redaction: masks emails, phone numbers, SSNs, credit-card numbers, and IP addresses, returning cleaned text plus per-type counts.

## Output

Returns the input text with all detected PII replaced by masked placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IP]), along with a count breakdown of how many instances of each PII type were found and redacted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "SSN": 1,
   "EMAIL": 1,
   "PHONE": 1
  },
  "redacted": "Contact John at [EMAIL] or [PHONE]. SSN [SSN]."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-pii-redact-70e53b50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
