# DocForge XLSX Generator

> DocForge XLSX Generator 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).

Generates a binary Excel XLSX workbook file on demand via a machine-payable x402 micropayment (USDC on Base).

## Facts

- Endpoint: POST https://docforge-selim.duckdns.org/xlsx?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-xlsx-generator-b32c6863
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lUsTHncXDy0tBzjFLup8i

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-xlsx-generator-b32c6863 -d '<json body>'
```

Example prompt: Generate an Excel spreadsheet with columns for Product, Quantity, and Price, and fill in these 5 rows of sales data I have — return it as a downloadable XLSX file.

## When to prefer this

Use this endpoint when you need to programmatically generate an Excel XLSX file and want to pay per-call via USDC micropayment rather than managing a subscription. Ideal for AI agents that need to produce downloadable spreadsheet reports on demand without a pre-established API key or subscription.

## Known failure modes

- 402 Payment Required on first call — must retry with a valid x402 payment header containing USDC on Base
- Invalid or malformed spreadsheet data input returns an error
- Insufficient USDC balance causes payment failure
- Network or DNS issues with the duckdns.org domain may cause timeouts
- Malformed request body may return 400 Bad Request

## 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 XLSX workbook file (Excel format) returned as the response body, ready to save or download. The file contains the requested spreadsheet data formatted as a valid Excel document.

## 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": [],
     "properties": {
      "csv": {
       "type": "string",
       "description": "Raw CSV (RFC 4180) — alternative to sheets; first row is the header"
      },
      "title": {
       "type": "string",
       "description": "Workbook title metadata"
      },
      "sheets": {
       "type": "array",
       "description": "{ name?, columns?: [{header, key?, width?, numFmt?}], rows, freezeHeader?, autoFilter?, totalsRow? }. Cells: primitives, {formula}, {value,numFmt}, {value,type:'date'}. Max 30 sheets / 200,000 cells."
      },
      "delimiter": {
       "type": "string",
       "description": "CSV delimiter (default ',')"
      },
      "sheetName": {
       "type": "string",
       "description": "Sheet name for CSV mode"
      }
     }
    },
    "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 XLSX workbook"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docforge-xlsx-generator-b32c6863/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)
