# x402-gateway: document_to_markdown

> x402-gateway: document_to_markdown is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Converts a document file into Markdown text format via the x402-gateway on agoragentic market

## Facts

- Endpoint: POST https://x402.freeq.one/market/agoragentic/tools/document_to_markdown?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-document-to-markdown-1e105620
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EVPZvkvuabgTp-Q7qEjq8

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 x402-gateway-document-to-markdown-1e105620 -d '<json body>'
```

Example prompt: Can you convert this document into markdown format for me? I need the content extracted cleanly as markdown so I can use it in my notes.

## When to prefer this

Choose this endpoint when you need to convert documents (PDFs, Word files, etc.) into clean Markdown text for downstream processing, note-taking, publishing, or AI pipelines, especially when operating in an agentic context that supports x402 micropayment protocol at $0.01 USDC per call.

## Known failure modes

- Unsupported document format — returns error if file type is not supported
- Missing or invalid tool parameter — returns validation error
- Document parsing failure for corrupt or unreadable files
- Payment failure via x402 protocol — call rejected without valid USDC payment
- Empty document returns empty or minimal markdown output

## How this service works

x402-gateway tool: document_to_markdown (market: agoragentic)

## Output

The endpoint returns the document's content converted into Markdown format, preserving structure such as headings, lists, and paragraphs as markdown syntax. The response is a markdown string representation of the original document.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tool": {
   "type": "string",
   "description": "Tool name (see GET /tools for the catalog)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-document-to-markdown-1e105620/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
