# Resolve402 Document to Markdown Converter

> Resolve402 Document to Markdown Converter is a paid API for AI agents from resolve402.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Converts PDF, DOCX, HTML, or TXT documents (via URL or file upload) into clean Markdown with extracted tables, returning markdown text, table rows, page count, character count, and source type.

## Facts

- Endpoint: GET https://resolve402.dev/api/doc-to-markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/resolve402-document-to-markdown-converter-e504a46f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6HgyVqUngfTwqq5OnRPZw

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 resolve402-document-to-markdown-converter-e504a46f
```

Example prompt: Can you convert this PDF into clean markdown for me? Here's the URL: https://example.com/report.pdf — I need the tables extracted as rows too so I can feed it into an LLM.

## When to prefer this

Choose this endpoint when your agent is running in a hosted environment and cannot run local document parsers (e.g. pdfminer, python-docx). Ideal for pay-per-call pipelines where you only occasionally need document conversion and don't want to maintain parsing infrastructure. Best when you need LLM-ready markdown with structured table extraction in a single API call, and your document is reachable via a public URL or uploadable as a file.

## Known failure modes

- Document URL is not publicly accessible or returns non-200 — fetch fails
- File exceeds 10 MB limit — rejected with size error
- Remote URL fetch exceeds 10-second timeout — timeout error
- Unsupported file format submitted — returns format error
- Malformed or corrupted document — parsing failure
- Payment not completed via x402 — 402 Payment Required returned

## How this service works

Convert a document (PDF, DOCX, HTML, TXT) into clean Markdown for an LLM, with tables extracted as rows. Give a public URL (?url=) or POST the file (multipart or raw binary body, max 10 MB). Returns markdown, tables, page count, char count and source type. Useful for hosted agents that cannot run parsers locally. Nothing stored.

## Output

Returns a JSON object containing: the full markdown representation of the document, tables extracted as structured rows, total page count, character count, and the detected source type (pdf, docx, html, or txt). Nothing is stored server-side after the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL of a PDF, DOCX, HTML, TXT or image (PNG, JPEG, WebP, TIFF) document (max 10 MB, 10 s fetch). Alternative: POST the file as multipart/form-data (field 'file') or as a raw binary body."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/resolve402-document-to-markdown-converter-e504a46f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from resolve402.dev](https://www.zero.xyz/host/resolve402.dev/llms.txt)
