# DocForge PDF Merge

> DocForge PDF Merge is a paid API for AI agents from docforge-selim.duckdns.org, paid per call via x402, $0.02/call, status down (last checked 2026-10-12).

Merges multiple PDF documents into a single PDF file, paid per-call via x402 USDC micropayment on Base.

## Facts

- Endpoint: POST https://docforge-selim.duckdns.org/pdf-merge?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docforge-pdf-merge-028db4dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GB7o42tl0HiqLLlYr6Il5

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 docforge-pdf-merge-028db4dc -d '<json body>'
```

Example prompt: Merge these three PDF files — the contract, the appendix, and the signature page — into a single combined PDF document.

## When to prefer this

Choose this endpoint when an agent needs to programmatically merge multiple PDFs into one document in a machine-payable, per-call micropayment workflow using x402/USDC on Base, particularly in automated pipelines where paying per operation is preferable to a subscription.

## Known failure modes

- 402 Payment Required — agent must attach x402 payment header with 0.02 USDC on Base and retry
- Invalid or corrupt PDF input — one or more uploaded files are not valid PDFs
- Missing input files — no PDF files provided in the request body
- Unsupported file format — non-PDF files included in the merge request
- Service unavailable — duckdns host may be intermittently unreachable

## How this service works

Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.

## Output

Returns a binary merged PDF file (application/pdf) containing all input PDFs concatenated in order, delivered directly in the response body after successful x402 USDC payment.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "files"
     ],
     "properties": {
      "files": {
       "type": "array",
       "description": "2-20 base64-encoded PDFs (data: URIs accepted). Merged in array order. Max 15MB each, 30MB combined."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "Binary merged PDF (application/pdf)"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docforge-pdf-merge-028db4dc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docforge-selim.duckdns.org](https://www.zero.xyz/host/docforge-selim.duckdns.org/llms.txt)
