# ScrubMyText Rework API

> ScrubMyText Rework API is a paid API for AI agents from api.scrubmytext.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Deterministically rewrites text in light, standard, or deep modes while preserving numbers, URLs, emails, and quoted content, returning change metrics and preservation checks.

## Facts

- Endpoint: POST https://api.scrubmytext.com/x402/v1/rework
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrubmytext-rework-api-853960d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wBX0kl9hZa5i0DbXwDXZV

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 scrubmytext-rework-api-853960d8 -d '<json body>'
```

Example prompt: Take this 800-word article and do a deep rewrite on it — make sure to preserve all the numbers, URLs, and any quoted text exactly as they are, and tell me how many changes were made.

## When to prefer this

Choose this endpoint when you need a rule-based, non-LLM rewrite that guarantees factual entity preservation (numbers, URLs, emails, quotes) and provides verifiable change metrics. Prefer it over LLM-based paraphrasers when determinism and auditability matter, when you need to protect specific data elements from alteration, or when you want a cost-controlled pay-per-call rewrite without probabilistic drift.

## Known failure modes

- Text exceeds 1,000,000 character limit — request rejected
- Invalid mode value outside light/standard/deep enum — validation error
- Empty or missing text field — bad request error
- Payment failure or insufficient USDC balance for x402 pay-per-call
- Rate limit exceeded on trial tier
- Network timeout on very large documents

## How this service works

Use when an agent needs a deterministic, no-LLM rewrite while preserving protected facts such as numbers, URLs, emails, and quotes. Returns change metrics and preservation checks; does not verify authorship or watermark status. Trial, subscription, or x402 pay-per-call.

## Output

Returns the rewritten text along with change metrics (e.g. percentage of tokens altered, number of substitutions) and preservation check results confirming that protected entities such as numbers, URLs, emails, and quoted passages were left untouched.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "light",
    "standard",
    "deep"
   ],
   "type": "string"
  },
  "text": {
   "type": "string",
   "maxLength": 1000000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrubmytext-rework-api-853960d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.scrubmytext.com](https://www.zero.xyz/host/api.scrubmytext.com/llms.txt)
