# Strale PII Redactor

> Strale PII Redactor is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0324/call, status unknown (last checked 2026-10-12).

Detects and redacts personally identifiable information (PII) from a given text, replacing names, emails, phone numbers, national IDs, and addresses with placeholders.

## Facts

- Endpoint: GET https://api.strale.io/x402/pii-redact?utm_source=zero.xyz
- Price: $0.0324/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-f831b43c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Y-GdxGLjhsYkz2Qj_TO8

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 api-strale-io-f831b43c
```

Example prompt: Can you redact all personally identifiable information from this text: 'Please contact John Andersson at john.andersson@email.com or call +46 70 123 4567, his personnummer is 811228-9874 and he lives at Storgatan 12, Stockholm.'

## When to prefer this

Choose this endpoint when you need to anonymize free-form text containing Nordic/European national ID formats (Swedish personnummer, Finnish henkilötunnus) in addition to standard PII like names, emails, and phone numbers. Ideal for GDPR-sensitive pipelines, pre-storage sanitization, or compliance workflows where a lightweight per-call API is preferable to running a local NLP model.

## Known failure modes

- Missing required 'text' query parameter returns a 400 error
- Empty string input may return unchanged text with no redactions
- Very long texts may time out or be truncated
- Non-Latin scripts or unusual national ID formats may not be detected
- Payment failure (402) if USDC balance is insufficient

## How this service works

Detect and redact personally identifiable information (PII) from text. Identifies names, emails, phone numbers, national ID numbers (Swedish personnummer, Finnish henkilötunnus, etc.), addresses, and more.

## Output

Returns the input text with all detected PII replaced by redacted placeholders, along with identified entity types such as names, email addresses, phone numbers, national ID numbers (e.g. Swedish personnummer, Finnish henkilötunnus), and physical addresses.

## Example request

```json
{
 "text": "Please contact Sarah Mitchell at sarah.mitchell@example.com or call +1 555 123 4567. Her social security number is 123-45-6789 and she lives at 456 Oak Street, Portland, Oregon 97201."
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Text to redact PII from"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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