# Stacktree HTML Page Publisher

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

Publishes an HTML page and returns a permanent, private, shareable link with a one-time claim token

## Facts

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

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-page-publisher-036035ec -d '<json body>'
```

Example prompt: Publish this HTML for me on Stacktree and give me the permanent shareable link: <!DOCTYPE html><html><body><h1>Hello World</h1><p>This is my page.</p></body></html>

## When to prefer this

Choose this endpoint when you need to instantly publish a self-contained HTML page and receive a permanent, private, unlisted URL — especially in agentic or automated workflows where you want to share rendered content without owning a domain or managing hosting infrastructure. Ideal when micropayment-gated publishing (x402/Solana/Base) is acceptable at $0.50 per publish.

## Known failure modes

- Payment failure or insufficient funds: endpoint rejects the request if x402 or MPP payment is not provided or fails
- Invalid or malformed HTML: may return an error if content cannot be processed
- Network timeout: slow connections may fail before publish completes
- Missing content body: returns error if no HTML is submitted

## How this service works

Publish an HTML page and get a permanent, private, shareable link. $0.50 per publish over x402 (Base or Solana) or MPP (Tempo).

## Output

A JSON object with a permanent shareable URL (https://stacktr.ee/p/<token>/), a one-time claim_token secret, and the unlisted_token used to construct the URL. The page is private and accessible only to those with the link.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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