# PDF Repairability Probe

> PDF Repairability Probe is a paid API for AI agents from x402.bakdupoffroad.com, paid per call via x402, $0.015/call, status down (last checked 2026-09-15).

Analyzes a base64-encoded PDF to detect structural issues and determine whether the file is a candidate for automated repair.

## Facts

- Endpoint: POST https://x402.bakdupoffroad.com/v1/document/repairability-probe
- Price: $0.015/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pdf-repairability-probe-5c39d283
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KHXIk3ayGUGBhnIXgrCzg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pdf-repairability-probe-5c39d283 -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Private PDF preflight and authorized-video intelligence APIs paid per call with x402 USDC on Base.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pdf-repairability-probe-5c39d283/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.bakdupoffroad.com](https://www.zero.xyz/host/x402.bakdupoffroad.com/llms.txt)
