# Stacktree HTML Publish

> Stacktree HTML Publish is a paid API for AI agents from api.stacktr.ee, paid per call via x402, $0.5/call, status unknown (last checked 2026-09-14).

Publishes an HTML page to a permanent, private, unguessable URL for $0.50 USDC, returning the URL and a one-time claim token — no account or API key required.

## Facts

- Endpoint: POST https://api.stacktr.ee/publish
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stacktree-html-publish-bae84725
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Jq8yYIA7nhDYcO4QQPO9

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 stacktree-html-publish-bae84725 -d '<json body>'
```

Example prompt: Take this HTML report I just generated and publish it to a permanent private link using Stacktree — pay the $0.50 fee and give me back the URL and claim token.

## When to prefer this

Choose this endpoint when an agent has generated HTML content (reports, specs, dashboards, editors) and needs to share it via a permanent, private URL with zero setup — no account, no API key, no human approval. Ideal for one-off publishing tasks where the $0.50 per-page cost is acceptable and privacy (unguessable URL) matters more than discoverability.

## Known failure modes

- Payment not included or malformed — 402 Payment Required with instructions
- HTML body missing or empty — 400 Bad Request
- Payment token invalid or already used — 402 or 400 error
- Service unavailable — 503 with retry guidance

## How this service works

Stacktree: host generated HTML as a live, shareable web page on a permanent, private, unguessable link ($0.50). POST any HTML (a report, dashboard, landing page, static site, or any page an agent produced) with payment; we return the URL and a one-time claim token. No account, no key, no human in the loop. The paying wallet can update the page free at the same URL, and a deleted page is restorable for 30 days.

## Output

Returns the permanent, unguessable URL where the HTML page is hosted, plus a one-time claim token that can be used to manage or transfer ownership of the page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "description": "The full HTML document to host."
  },
  "filename": {
   "type": "string",
   "description": "Optional logical filename; defaults to index.html."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://stacktr.ee/p/<token>/",
  "claim_token": "<one-time-secret>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stacktree-html-publish-bae84725/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.stacktr.ee](https://www.zero.xyz/host/api.stacktr.ee/llms.txt)
