# Publish Page (Markdown/HTML to URL)

> Publish Page (Markdown/HTML to URL) is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Renders Markdown or HTML as a clean, mobile-readable web page and returns a shareable URL, with configurable retention of 1–30 days.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/file-publish
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/publish-page-markdown-html-to-url-d8ce1236
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OjVLSfxio-Iqy7zO5N1gF

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 publish-page-markdown-html-to-url-d8ce1236
```

Example prompt: Take this markdown report and publish it as a readable web page I can share with the team — keep it live for 7 days and title it 'Q3 Analysis Summary'.

## When to prefer this

Use this endpoint when an agent needs to produce a human-readable, shareable URL from structured text output — especially markdown reports, summaries, or documentation — without needing a persistent CMS or file download. Prefer this over file-slot endpoints when the output is meant to be read in a browser by a person rather than fetched programmatically. Ideal for ephemeral deliverables like briefings, audit reports, or agent-generated summaries with a defined shelf life.

## Known failure modes

- Missing 'text' query parameter returns an error — the content body is required
- Invalid 'format' value (not 'md' or 'html') may cause rendering issues
- TTL value outside 1–30 days range may be rejected or clamped
- Very large text payloads may be truncated or rejected
- Page expires after retention period — URL becomes inaccessible
- Payment failure (insufficient USDC balance) prevents page creation

## How this service works

Send Markdown (or HTML) and get back a URL that renders as a real page — headings, tables, code blocks, mobile-readable, no scripts and no external requests. The other half of an agent's output problem: file-slot is for bytes it will fetch back, this is for the report somebody has to read. Retention 1-30 days. Published on the storage origin, never on 402.com.tr.

## Output

Returns a URL pointing to a rendered, mobile-friendly web page displaying the submitted Markdown or HTML content — with proper headings, tables, and code block formatting. The page loads with no external scripts or third-party requests. It remains accessible for the specified retention period (1–30 days, default if unset).

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Markdown or HTML to publish"
      },
      "title": {
       "type": "string",
       "description": "Page title (optional)"
      },
      "format": {
       "type": "string",
       "description": "md (default) or html"
      },
      "ttlDays": {
       "type": "string",
       "description": "Retention in days (optional)"
      }
     }
    }
   },
   "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/publish-page-markdown-html-to-url-d8ce1236/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
