# finmath PII Redact

> finmath PII Redact is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-16).

Redacts personally identifiable information (PII) from text input, returning a sanitized version with sensitive data removed or masked.

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/pii_redact?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-pii-redact-4dafce25
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BZ-W3C4hWM0ianr4dDHA3

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 finmath-pii-redact-4dafce25 -d '<json body>'
```

Example prompt: Can you redact any PII from this text before I store it: 'John Smith called from 555-867-5309, his SSN is 123-45-6789 and he lives at 42 Maple Street, Boston MA'?

## When to prefer this

Use this endpoint when you need deterministic, server-side PII redaction before passing text to downstream systems, logging pipelines, or AI models — especially when you cannot trust LLM-based redaction for compliance purposes. It is priced per-call at $0.002 USDC and suited for automated agent workflows requiring reliable anonymization.

## Known failure modes

- Missing 'text' field in request body returns a validation error
- Empty string input may return unchanged or minimal result
- Very long text inputs may hit worker payload limits
- Network timeout if Cloudflare Worker is overloaded
- Payment failure (402) if USDC balance is insufficient for the $0.002 per-call charge

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a JSON object with a 'result' field containing the sanitized text with PII replaced or masked, and a 'meta' field with processing metadata such as what was redacted.

## Example request

```json
{
 "text": "John Smith earned $50,000 in Q1 2024 and has a credit card ending in 4532. His phone is 555-0123."
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "text"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-pii-redact-4dafce25/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
