{"uid":"cap_KHXIk3ayGUGBhnIXgrCzg","slug":"pdf-repairability-probe-5c39d283","name":"PDF Repairability Probe","description":"Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.","url":"https://x402.bakdupoffroad.com/v1/document/repairability-probe","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":{"encrypted":false,"pdfVersion":"1.6","repairMethod":"qpdf-rewrite-and-revalidate","sourceSha256":"0000000000000000000000000000000000000000000000000000000000000000","schemaVersion":"1","issueCategories":["cross-reference-damage"],"repairCandidate":true,"structureStatus":"warnings"},"economics":{"netMicroUsd":15000,"energyMicroUsd":0,"revenueMicroUsd":15000,"platformFeeMicroUsd":0}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TXB7Lys9cvfZUHNP_Qpha","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","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 detect structural issues and determine whether the file is a candidate for automated repair.","exampleAgentPrompt":"I have a PDF that's behaving oddly — can you run a repairability probe on it and tell me whether it's encrypted, what structural issues it has, and whether it can be automatically fixed?","exampleUseCases":[{"title":"Pre-ingestion PDF triage pipeline","prompt":"Before we ingest this uploaded PDF into our document archive, can you check it for structural damage or cross-reference issues and tell me if it's a repair candidate so we know whether to queue it for repair first?"},{"title":"Debugging a corrupted client PDF","prompt":"A client sent over a PDF that won't open correctly — can you analyze it to tell me what's wrong structurally, whether it's encrypted, and what repair method would apply?"},{"title":"Automated document health check","prompt":"Run a repairability probe on this PDF and give me the structure status, any issue categories found, and whether it's worth attempting an automatic repair."}],"resultDescription":"Returns a JSON object containing: a job ID, the PDF version, whether the file is encrypted, a SHA-256 hash of the source, detected issue categories (e.g. cross-reference-damage), a boolean repairability flag, the recommended repair method (e.g. qpdf-rewrite-and-revalidate), structure status (e.g. warnings), and a cost breakdown in micro-USD.","failureModes":["PDF too large — exceeds service's decoded-size limit, resulting in rejection","Invalid base64 encoding — malformed input causes a parse error","Unsupported PDF variant — some exotic or severely corrupted PDFs may not be analyzable","Payment failure — x402 USDC payment on Base not completed, resulting in 402 response","Empty or missing pdfBase64 field — request body validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call preflight check on a PDF before committing to a full repair or ingestion workflow. It is particularly useful when building automated document pipelines where you need to triage files cheaply at $0.015 per call, and when privacy matters since the service does not retain or return customer text.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T19:28:31.054Z","isFirstParty":false}