Stacktree Sites API

Publish, update, and delete static HTML sites.

GitHub OpenAPI

Operations 24

POST /uploads Start sending a file too big for one request, in parts #
GET /uploads/{id} Which parts of an upload have arrived, for resuming #
DELETE /uploads/{id} Give up an upload and delete what was sent #
PUT /uploads/{id}/parts/{n} Send one part of an upload, as raw bytes #
POST /uploads/{id}/complete Join an upload's parts. Optional: publishing it does this #
GET /sites List sites belonging to the authenticated principal #
POST /sites Publish a new site #
GET /sites/{idOrSlug} Get a site by id or slug #
PUT /sites/{idOrSlug} Replace the site contents (full re-upload, same URL) #
PATCH /sites/{idOrSlug} Update site settings (visibility, slug, expiry, passcode, email gate, client… #
DELETE /sites/{idOrSlug} Take a page down. Restorable for 30 days #
GET /sites/{idOrSlug}/activity Has anyone opened it? #
POST /sites/{idOrSlug}/keep Email the claim link for an unclaimed page to its human, plus one reminder as… #
POST /sites/{idOrSlug}/restore Put a page that was deleted or expired back at the same URL #
GET /sites/{idOrSlug}/content Read the exact stored HTML source of a site you own #
GET /sites/{idOrSlug}/versions List earlier versions of a page you own, newest first #
POST /sites/{idOrSlug}/versions/{versionId}/restore Put an earlier version of a page back at the same URL #
POST /sites/revision-match Ask, before publishing, whether a page would be a new version of one you have #
GET /sites/{idOrSlug}/passcode Show the passcode set on a site you own #
PUT /sites/{idOrSlug}/cover Set the image that stands for a site you own #
DELETE /sites/{idOrSlug}/cover Remove a site's cover image #
POST /sites/{idOrSlug}/claim Claim an anonymous site into your account #
POST /sites/{idOrSlug}/beautify Generate a beautified rebuild of a single-file HTML page (preview only… #
GET /design-guide The house design guide for improving a published page #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stacktr-ee:stacktr-ee-sites-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stacktr-ee-sites-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stacktree Sites API
  version: 1.0.0
  summary: 'Agent-first private-by-default HTML hosting: host a web page from any agent.'
  description: 'Stacktree hosts web pages for AI agents: turn generated HTML (a report, dashboard, landing page or static site) into a live, shareable webpage on a permanent private link. Publish, manage, and share static HTML sites from AI agents. Supports anonymous publishing for one-shot artefacts, API-key auth for long-lived agent jobs, and OAuth 2.1 with Dynamic Client Registration for in-product agent connectors (claude.ai, ChatGPT custom connectors, etc.). ## Versioning and deprecation The API is major version 1. Every unversioned path is also served under the `/v1/` prefix (`/v1/sites` = `/sites`); pin `/v1/` if you want the version in the URL. Breaking changes only ever ship under a new prefix (`/v2/`), never in place. Deprecations are signalled in-band with `Deprecation` and `Sunset` response headers (RFC 8594) at least 90 days before removal, and listed in the changelog at https://stacktr.ee/changelog. Nothing is deprecated today. ## Rate limits Rate-limited surfaces return standard headers on every response: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (seconds until the rolling window frees), the combined `RateLimit` field, and `RateLimit-Policy`. A `429` additionally carries `Retry-After` in seconds. Current windows: anonymous publishes and per-plan daily publish caps roll over 24 h; OAuth dynamic client registration is per-IP per hour. Read the caps from `GET /me` rather than hardcoding them. See /llms.txt for the agent-readable overview, and /docs for human docs.'
  contact:
    name: Stacktree
    url: https://stacktr.ee
    email: gm@stacktr.ee
  license:
    name: Proprietary
  termsOfService: https://stacktr.ee/terms
  x-guidance: 'Stacktree hosts generated HTML (reports, dashboards, landing pages, static sites) as private, shareable web pages. Anonymous: POST /sites with a multipart `file` field to get a private 24h URL, no auth. One permanent page, no key: POST /publish and pay $0.50 over x402 or MPP. Persistent: pay $1 once over x402 at POST /provision to receive an stk_live_ API key, then POST /sites with `Authorization: Bearer <key>`. That key starts on free-tier limits (3 pages in total, each expiring after 7 days, passcodes included); POST /unlock buys more. Each response returns the private URL. Gate a site with a passcode or email domain, set an expiry, or attach your own domain via the /sites and /custom-domains routes. Plan ceilings return HTTP 402 with a plan_* error code, described in the 402 responses below.'
servers:
- url: https://api.stacktr.ee
  description: Production API host (current major version; /v1 is an identical alias)
security:
- bearerApiKey: []
- oauth2:
  - sites:write
  - sites:read
tags:


# --- truncated at 32 KB (90 KB total) ---
# Full source: https://artifacts.apis.io/stacktr-ee/openapi/stacktr-ee-sites-api-openapi.yml