# DocForge PDF Watermark

> DocForge PDF Watermark 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-09-15).

Adds a watermark to an existing PDF document, returning the watermarked binary PDF, paid via x402 USDC on Base.

## Facts

- Endpoint: POST https://docforge-selim.duckdns.org/pdf-watermark
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docforge-pdf-watermark-01cfcfc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LBiHgqFvq3TysEHbcnjlZ

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-watermark-01cfcfc7 -d '<json body>'
```

Example prompt: Can you add a diagonal 'CONFIDENTIAL' watermark in light gray across every page of this PDF I'm uploading? Pay the $0.02 fee automatically.

## When to prefer this

Use this endpoint when you need to programmatically stamp or brand a PDF with a text or image watermark in a machine-payable, per-call fashion via x402/USDC, without managing a subscription or API key — ideal for agents automating document workflows.

## Known failure modes

- 402 Payment Required — no x402 payment header provided; retry with valid USDC payment on Base
- 400 Bad Request — missing or malformed PDF input or watermark parameters
- 413 Payload Too Large — PDF file exceeds size limit
- 415 Unsupported Media Type — input file is not a valid PDF
- 500 Internal Server Error — watermark processing failed on the server side
- Payment rejected — insufficient USDC balance or invalid wallet signature

## 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

A binary PDF file (application/pdf) with the specified watermark applied to all pages, returned as application/pdf content ready to save or forward.

## 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": [
      "file",
      "text"
     ],
     "properties": {
      "file": {
       "type": "string",
       "description": "Base64-encoded source PDF (data: URI accepted). Max 15MB."
      },
      "size": {
       "type": "number",
       "description": "Font size."
      },
      "text": {
       "type": "string",
       "description": "Watermark text (required)."
      },
      "angle": {
       "type": "number",
       "description": "Rotation degrees, default 45."
      },
      "color": {
       "type": "string",
       "description": "Hex color, e.g. #888888."
      },
      "opacity": {
       "type": "number",
       "description": "0-1, default ~0.2."
      }
     }
    },
    "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 watermarked PDF (application/pdf)"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docforge-pdf-watermark-01cfcfc7/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)
