# TinyOps Redact Text to PDF

> TinyOps Redact Text to PDF is a paid API for AI agents from x402-preflight.tinyopsstudio.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Redacts sensitive information (PII, secrets, custom terms) from text using configurable detectors, then converts the sanitized text into a downloadable PDF document.

## Facts

- Endpoint: POST https://x402-preflight.tinyopsstudio.com/redact-text-to-pdf
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tinyops-redact-text-to-pdf-a7120b01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_apefIAesUACFv8qBNMvKo

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 tinyops-redact-text-to-pdf-a7120b01 -d '<json body>'
```

Example prompt: Take this support ticket text and redact any email addresses, phone numbers, and SSNs — replace them all with '[REDACTED]' — then convert the sanitized result to a PDF titled 'Sanitized Support Log'.

## When to prefer this

Choose this endpoint when you need both PII/sensitive-data redaction AND PDF generation in a single atomic step, processing text entirely in-memory for privacy. It is ideal when you need configurable detection (choosing from credit_card, ssn, email, phone, ipv4, api_key) plus custom exact-match term redaction in one call. Prefer this over a separate redaction API + PDF converter when minimizing data exposure across multiple services is a priority, or when you need an audit-ready redacted PDF artifact directly.

## Known failure modes

- Text exceeds 50,000 character limit — request rejected with validation error
- Invalid detector type in detectors array — schema validation failure
- Exact term string exceeds 200 characters or array exceeds 100 items — validation error
- Replacement string exceeds 40 characters — rejected
- Payment not provided or insufficient — 402 Payment Required response
- Empty text input — returns PDF with no redactions or an error
- Service unavailable — 5xx error with no PDF returned

## How this service works

Paid automation readiness analysis, acceptance evidence, exported n8n workflow auditing, private in-memory text-to-PDF conversion, and sensitive-text redaction with a newly generated PDF.

## Output

A JSON response containing: a base64-encoded PDF of the redacted document (pdf_base64), the redacted plain text (redacted_text), per-detector redaction counts (redaction_counts), total number of redactions (total_redactions), a suggested filename, and the content type (application/pdf). The agent can decode the base64 string to obtain the binary PDF file.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 50000
  },
  "title": {
   "type": "string",
   "maxLength": 120
  },
  "detectors": {
   "type": "array",
   "items": {
    "enum": [
     "credit_card",
     "ssn",
     "email",
     "phone",
     "ipv4",
     "api_key"
    ],
    "type": "string"
   }
  },
  "exact_terms": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 200
   },
   "maxItems": 100
  },
  "replacement": {
   "type": "string",
   "maxLength": 40
  },
  "case_sensitive": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "encoding": "base64",
  "filename": "redacted-document.pdf",
  "pdf_base64": "JVBERi0xLjQKLi4u",
  "content_type": "application/pdf",
  "redacted_text": "Contact [REDACTED] and remove [REDACTED].",
  "redaction_counts": {
   "email": 1,
   "exact_terms": 1
  },
  "total_redactions": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tinyops-redact-text-to-pdf-a7120b01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-preflight.tinyopsstudio.com](https://www.zero.xyz/host/x402-preflight.tinyopsstudio.com/llms.txt)
