{"uid":"cap_apefIAesUACFv8qBNMvKo","slug":"tinyops-redact-text-to-pdf-a7120b01","name":"TinyOps Redact Text to PDF","description":"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.","url":"https://x402-preflight.tinyopsstudio.com/redact-text-to-pdf","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":{"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}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Z9xeUC4E1ZF5hRgst288","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Redacts sensitive information (PII, secrets, custom terms) from text using configurable detectors, then converts the sanitized text into a downloadable PDF document.","exampleAgentPrompt":"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'.","exampleUseCases":[{"title":"Sanitize customer data before sharing","prompt":"I need to share this customer database export with a third-party auditor, but first strip out all email addresses, credit card numbers, and SSNs and replace them with '[REDACTED]', then give me the result as a PDF titled 'Audit Data Export'."},{"title":"Redact API keys from internal logs","prompt":"Here's a chunk of server logs that might contain API keys and IPv4 addresses — please redact those automatically and also mask the exact term 'sk-prod-secret', then generate a clean PDF called 'Sanitized Logs' I can post in our incident report."},{"title":"Prepare GDPR-compliant document PDF","prompt":"Take this raw contract text, remove all email addresses and phone numbers, replace them with '***', and produce a properly formatted PDF titled 'GDPR Redacted Contract' that I can send to legal."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:34:57.855Z","isFirstParty":false}