# AIAlign Memory Sanitizer

> AIAlign Memory Sanitizer is a paid API for AI agents from aialign.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Redacts private keys, credentials, emails, payment card numbers, IPv4 addresses, and phone-like digit strings from text, returning sanitized content with per-category match counts.

## Facts

- Endpoint: POST https://aialign.halowerk.com/v1/memory-sanitize
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aialign-memory-sanitizer-6315c9a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ylt0PQb1PGrEmL3_4Q9i1

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 aialign-memory-sanitizer-6315c9a6 -d '<json body>'
```

Example prompt: Scrub this text of any private keys, email addresses, credit card numbers, IP addresses, and phone numbers before I store it — use typed replacements so I can see what category each redaction was: 'Contact john@example.com or call 415-555-0198, card ending 4111111111111111, key BEGIN RSA PRIVATE KEY...'

## When to prefer this

Use this endpoint when you need fast, pattern-based redaction of well-known secret categories (private keys, credentials, emails, payment cards, IPs, phone-like strings) from text before storage, logging, or sharing. It is not a full anonymization solution and should not be used as the sole PII guardrail for compliance-sensitive data. Prefer it over general-purpose LLM-based redaction when you need deterministic, auditable, low-latency scrubbing with per-category counts.

## Known failure modes

- Text exceeds 200,000 character limit — request rejected
- Invalid replacement_style value — validation error returned
- Incomplete redaction: novel or contextual secrets not matching known patterns may pass through unreacted
- False positives: digit strings that look like phone numbers or Luhn-valid but non-card numbers may be incorrectly redacted
- Empty text input — minLength:1 constraint triggers error

## How this service works

Replaces private-key blocks, credential assignments, email addresses, Luhn-valid payment-card candidates, IPv4 addresses and phone-like digit strings, returning only sanitized text and per-category counts. The request archive stores only input field names and the result archive stores only this method via the endpoint factory. Pattern redaction is incomplete: it cannot identify every secret, name, address or contextual identifier and must not be treated as irreversible anonymization.

## Output

Returns the sanitized version of the input text with identified sensitive patterns replaced (either with typed labels like [EMAIL] or a generic placeholder, depending on replacement_style), plus a count of matches found per redaction category (e.g. emails: 2, ipv4: 1, payment_cards: 1).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 200000,
   "minLength": 1
  },
  "replacement_style": {
   "enum": [
    "typed",
    "generic"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aialign-memory-sanitizer-6315c9a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aialign.halowerk.com](https://www.zero.xyz/host/aialign.halowerk.com/llms.txt)
