{"uid":"cap_JQQZwzeFpXS4F3ni47h5w","slug":"compute-revenue-lab-pdf-private-preflight-bundle-87ca0013","name":"Compute Revenue Lab — PDF Private Preflight Bundle","description":"Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.","url":"https://x402.bakdupoffroad.com/v1/document/private-preflight-bundle","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":{"risks":[],"pageCount":4,"structure":{"status":"valid","repairMethod":"none","issueCategories":[],"repairCandidate":false},"ocrPageMap":{"pages":[],"profileTruncated":false,"profiledPageCount":4},"formTopology":{"fieldCount":0,"hasAcroForm":false,"fieldTypeCounts":{},"widgetPageCount":0,"needsAppearances":false,"signatureFieldCount":0},"sourceSha256":"0000000000000000000000000000000000000000000000000000000000000000","schemaVersion":"1","documentFamily":"selectable_pdf","processingBudget":{"workUnits":4,"formFields":0,"sparsePages":0,"profiledPages":4,"selectablePages":4,"profileTruncated":false,"estimatedOcrPages":0,"avoidedFullOcrPages":4,"recommendedPipeline":"extract-selectable-text-with-page-locators"},"redactionRiskMap":{"confidence":"bounded-pattern-scan","sourceSafe":true,"limitations":[],"signalCounts":{"email":0,"phone":0,"ssnLike":0,"ibanLike":0,"credentialLike":0,"creditCardLike":0},"pagesWithSignals":[],"unresolvedImagePages":[]},"recommendedMethod":"extract-selectable-text-with-page-locators"},"economics":{"netMicroUsd":75000,"energyMicroUsd":0,"revenueMicroUsd":75000,"platformFeeMicroUsd":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.075","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.075/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.075","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2zkxK0PFOwMhm3QDTvJl_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.075","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a base64-encoded PDF to assess structure, OCR needs, form topology, redaction risks, and recommended extraction pipeline before committing to full processing.","exampleAgentPrompt":"Before I run full extraction on this PDF, can you preflight it — check the structure, figure out if it needs OCR, flag any PII signals like SSNs or credit cards, and tell me the recommended pipeline? Here's the file as base64.","exampleUseCases":[{"title":"PII risk scan before document ingestion","prompt":"I'm about to ingest a batch of customer-uploaded PDFs into our data warehouse — can you preflight this one first to check for any sensitive data signals like SSNs, IBANs, or credit card numbers before it goes anywhere?"},{"title":"Optimize OCR cost for scanned documents","prompt":"I have a scanned PDF and I'm not sure if it needs full OCR or if there's already selectable text — can you run a preflight on it and tell me how many pages actually need OCR and which extraction pipeline you'd recommend?"},{"title":"Validate PDF structure before form processing","prompt":"We're processing a PDF form submission and want to confirm the AcroForm structure is valid and count the form fields before running our extraction — can you preflight this PDF and give me the field count and structure status?"}],"resultDescription":"A JSON object containing: a job ID, page count, document structure validity (status and repair candidacy), an OCR page map showing which pages need OCR, form topology (AcroForm presence, field counts by type, signature fields), a SHA-256 hash of the source, a processing budget (work units, selectable vs profiled pages, estimated OCR pages avoided), a redaction risk map with pattern-scan signal counts for emails, phones, SSNs, IBANs, credentials, and credit cards, plus the recommended extraction pipeline method, and billing economics (net cost in microUSD).","failureModes":["Oversized PDF exceeds the service's decoded-size limit — payload rejected","Malformed base64 string causes decoding failure","PDF is encrypted or password-protected, preventing structure analysis","Network timeout if PDF is very large","x402 payment failure if USDC balance is insufficient or Base network is congested","Invalid content type returns schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, privacy-safe preflight pass on a PDF before committing to heavier extraction or OCR pipelines. It is ideal for cost estimation (determining how many pages truly need OCR), PII triage (bounded pattern scan for common sensitive data signals), and structural validation (AcroForm field counts, repair candidacy) — all without retaining customer text. Prefer it over full extraction endpoints when you want to route documents to the right pipeline, or when you need a SHA-256 fingerprint and a recommended method before proceeding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T16:25:28.153Z","isFirstParty":false}