{"uid":"cap_MGuiI2bxrDoB1JOgSnWqs","slug":"pdf-redaction-risk-map-compute-revenue-lab-de2d76b6","name":"PDF Redaction Risk Map — Compute Revenue Lab","description":"Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.","url":"https://x402.bakdupoffroad.com/v1/document/redaction-risk-map","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"pdfBase64":{"type":"string","description":"A base64-encoded PDF, up to the service's advertised decoded-size limit. Customer text is never returned or retained.","contentEncoding":"base64","contentMediaType":"application/pdf"}}},"responseSchema":{"type":"json","example":{"jobId":"00000000-0000-4000-8000-000000000000","result":{"riskMap":{"confidence":"bounded-pattern-scan","sourceSafe":true,"limitations":["pattern counts are leads, not a guarantee of complete redaction"],"signalCounts":{"email":2,"phone":1,"ssnLike":0,"ibanLike":0,"credentialLike":0,"creditCardLike":0},"pagesWithSignals":[1,3],"unresolvedImagePages":[]},"pageCount":3,"sourceSha256":"0000000000000000000000000000000000000000000000000000000000000000","schemaVersion":"1"},"economics":{"netMicroUsd":45000,"energyMicroUsd":0,"revenueMicroUsd":45000,"platformFeeMicroUsd":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.045","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":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eCGtykGwg1gwcGd_NVauv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans a base64-encoded PDF for sensitive data signals (emails, phone numbers, SSNs, IBANs, credentials, credit cards) and returns a page-level risk map indicating where PII-like patterns were detected before the document is shared or published.","exampleAgentPrompt":"Can you scan this PDF for any sensitive data like emails, phone numbers, or SSNs before I share it externally? I'll send it as a base64-encoded file — I need to know which pages have risky content.","exampleUseCases":[{"title":"Pre-share PII audit for legal contracts","prompt":"Before I send this NDA to the client, can you scan it for any accidentally included email addresses, phone numbers, or credential-like strings? Here's the PDF encoded in base64 — tell me which pages have signals I should review."},{"title":"Compliance preflight for HR document release","prompt":"We're about to release a batch of HR documents and need to make sure none of them contain unredacted SSNs or IBAN numbers. Can you run this base64 PDF through a redaction risk scan and tell me the signal counts by type?"},{"title":"Publishing safety check for research report","prompt":"I'm about to publish this research report as a PDF — can you check it for any PII patterns like emails or credit card numbers that might have slipped in? Give me a page-level breakdown of where any signals appear."}],"resultDescription":"Returns a JSON object containing a redaction risk map with: per-type signal counts (email, phone, SSN-like, IBAN-like, credential-like, credit card-like), a list of page numbers where signals were found, a list of pages with unresolved image content, a confidence level ('bounded-pattern-scan'), a flag indicating whether the source is safe, a SHA-256 hash of the input document, and the total page count. Also includes economics breakdown of the $0.045 USDC call cost.","failureModes":["PDF exceeds the service's maximum decoded-size limit — request rejected","Invalid or malformed base64 encoding — parsing error returned","Payment not provided or insufficient — HTTP 402 returned before processing","PDF is encrypted or password-protected — content may not be scannable","Image-heavy pages with no extractable text — flagged as unresolved image pages, signals may be missed","Network timeout on large documents"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, privacy-safe PII signal scan on a PDF before sharing, publishing, or archiving it — especially when you want page-level granularity across multiple signal types (email, phone, SSN, IBAN, credentials, credit cards) without sending document text to a third party. Prefer this over general-purpose LLM document analysis when cost predictability ($0.045/call), speed, and the guarantee that customer text is never retained or returned are priorities. Not suitable for full OCR, image-based redaction, or guaranteed complete redaction verification.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:28:51.265Z","isFirstParty":false}