---
tool_name: redact-pdf
summary: Find phone numbers and ID numbers by regex, black them out and rasterise — the text is really gone.
input:
  file: binary, required # PDF document (max 200MB)
  patterns: string, required # 涂黑规则（正则，逗号分隔）
  pages: string, optional # 处理页
output:
  preview_url: string | watermarked preview, free, no auth
  task_id: string | unique task identifier
  payment_url: string | end-user must complete one-time payment to unlock final output
  final_download_url: string | only available after successful payment
auth: login via email/phone OTP on https://redact-pdf.yeezhan.com; API callers use a personal API key (Bearer yeek_...)
payment_rule: one-time charge $2.99 per task. NO credits, NO account balance. One payment unlocks only this task.
valid_window: 24 hours after payment
errors:
  - file_too_large
  - invalid_input
  - unsupported_type
  - target_unreachable
  - processing_failed
endpoint: https://redact-pdf.yeezhan.com/api/v1/run
---
