# 24K Labs PII Redactor

> 24K Labs PII Redactor 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).

Regex-based redaction of PII (emails, phone numbers, SSNs, credit card numbers, IP addresses) from text, returning sanitized text and per-type redaction counts.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/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-redactor-29dfbc30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MpS0QhNRSDCleTIveVbTi

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-redactor-29dfbc30 -d '<json body>'
```

Example prompt: Scrub all PII from this support ticket text — mask any emails, phone numbers, SSNs, credit card numbers, and IP addresses, and tell me how many of each type were found: 'Hi, my name is John, email john@example.com, SSN 123-45-6789, card 4111111111111111, call me at 555-867-5309.'

## When to prefer this

Choose this endpoint when you need fast, deterministic, regex-based PII removal across the five standard US PII types (email, phone, SSN, credit card, IP) without requiring an LLM or ML model. Ideal for preprocessing pipelines, compliance workflows, and log sanitization where speed and predictability matter more than handling exotic or international PII formats.

## Known failure modes

- Missing or empty input text returns an error or empty response
- Regex-based matching may miss non-standard PII formats (e.g. international phone formats, formatted SSNs with spaces)
- False positives: number sequences resembling SSNs or credit cards that are not actually PII may be masked
- Very large text bodies may hit payload size limits
- Malformed request body returns a 400-level 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 original text with all detected PII replaced by redacted placeholders (e.g. [EMAIL], [PHONE], [SSN], [CREDIT_CARD], [IP]), along with a structured count of how many instances of each PII type were masked.

## 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-redactor-29dfbc30/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)
