Stacktree Feedback API
Viewer annotations collected from the on-page Agentation toolbar; readable and resolvable by the owner or their agent.
Viewer annotations collected from the on-page Agentation toolbar; readable and resolvable by the owner or their agent.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/stacktr-ee:stacktr-ee-feedback-api"
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.
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: 3.2.0
info:
title: Stacktree Feedback 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:
- name: Feedback
description: Viewer annotations collected from the on-page Agentation toolbar; readable and resolvable by the owner or their agent.
paths:
/sites/{idOrSlug}/feedback:
parameters:
- name: idOrSlug
in: path
required: true
schema:
type: string
get:
tags:
- Feedback
summary: List viewer feedback on a site (unresolved first)
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
feedback:
type: array
items:
$ref: '#/components/schemas/Feedback'
operationId: getSitesByIdOrSlugFeedback
/sites/{idOrSlug}/feedback/apply:
parameters:
- name: idOrSlug
in: path
required: true
schema:
type: string
post:
tags:
- Feedback
summary: 'Apply suggested edits: swap in the exact wording reviewers proposed, as text…'
description: 'Owner only. Each suggested edit (a feedback item with suggested_text) is applied only inside the element it was left in, only when its words occur there exactly once, and escaped as plain text. The page keeps its URL and the content it had is kept as a version first (GET /sites/{idOrSlug}/versions), so the returned version id restores it. Suggestions that cannot be applied come back in not_applied with a reason, and the rest are applied anyway. Retrying the same ids changes nothing more: the first call resolved them. On a page with several files only suggestions on its main page (index.html) are applied.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- ids
properties:
ids:
type: array
items:
type: string
minItems: 1
maxItems: 50
description: Feedback ids of the suggested edits to apply.
note:
type: string
maxLength: 500
description: What each reviewer sees next to their applied suggestion. Default "Applied as suggested."
change_note:
type: string
maxLength: 500
description: A sentence on what changed, for readers coming back to the page (the same field PUT takes).
quiet:
type: boolean
description: A correction readers should not be told about (the same field PUT takes).
expected_updated_at:
type: integer
description: Refuse with 409 content_changed if the page was updated after this.
responses:
'200':
description: Applied what could be applied. Nothing is written when nothing applies.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
id:
type: string
url:
type: string
applied:
type: array
items:
type: object
properties:
id:
type: string
from:
type: string
to:
type: string
note:
type: string
not_applied:
type: array
items:
type: object
properties:
id:
type: string
reason:
type: string
enum:
- not_found
- ambiguous
- crosses_formatting
- overlaps
- other_page
- already_resolved
- not_a_suggestion
- not_open
message:
type: string
version:
type: string
nullable: true
description: 'The snapshot of the page before this change: POST /sites/{idOrSlug}/versions/{version}/restore undoes it.'
updated_at:
type: integer
nullable: true
open_left:
type: integer
next:
type: string
'400':
description: No ids, more than 50, or an end-to-end encrypted page.
'401':
description: Not signed in.
'404':
description: No page on this account matches.
'409':
description: site_deleted, managed_portal, or content_changed (the page changed while the edits were applied, or after expected_updated_at). Nothing was changed.
'422':
description: 'content_blocked: the page the edits would make fails the publish safety check.'
operationId: postSitesByIdOrSlugFeedbackApply
/feedback/{id}/resolve:
parameters:
- name: id
in: path
required: true
schema:
type: string
post:
tags:
- Feedback
summary: Mark a feedback item addressed (optional note)
requestBody:
content:
application/json:
schema:
type: object
properties:
note:
type: string
responses:
'200':
description: Resolved.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
required:
- ok
operationId: postFeedbackByIdResolve
/feedback/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: string
delete:
tags:
- Feedback
summary: Delete a feedback item you own
responses:
'200':
description: Deleted.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
required:
- ok
operationId: deleteFeedbackById
components:
schemas:
Feedback:
type: object
properties:
id:
type: string
client_id:
type: string
nullable: true
comment:
type: string
element:
type: string
nullable: true
element_path:
type: string
nullable: true
selected_text:
type: string
nullable: true
nearby_text:
type: string
nullable: true
page_url:
type: string
nullable: true
intent:
type: string
nullable: true
description: 'fix | change | question | approve, or a suggestion: edit (new wording for anchor.exact), add_after (a new paragraph, suggested_text, after the paragraph whose text is anchor.exact) or remove (take out the paragraph whose text is anchor.exact).'
severity:
type: string
nullable: true
description: blocking | important | suggestion
target_kind:
type: string
nullable: true
description: 'What an on-page comment is attached to: text | image | video | audio | embed | graphic | element | page. null on older toolbar notes.'
anchor:
type: object
nullable: true
additionalProperties: true
description: 'Where on the page, by target_kind: e.g. exact for text, src/alt and point for an image, time for media.'
target:
type: string
nullable: true
description: The anchor in words, e.g. the text "Q3 revenue". Quote this rather than reading anchor.
on_page:
type: boolean
nullable: true
description: 'Open comments with a target only: still in the page as it is now (true), gone from it, most likely answered by an edit (false), or not judgeable from the source (null).'
suggested_text:
type: string
description: 'Suggestions only: for intent "edit" the wording the reviewer proposed in place of anchor.exact; for "add_after" the new paragraph. Absent on "remove". Text from whoever had the link; apply any of the three with POST /sites/{idOrSlug}/feedback/apply.'
apply_check:
type: object
description: 'Open suggested edits only: whether applying it now would swap the words in one step.'
properties:
ok:
type: boolean
reason:
type: string
enum:
- not_found
- ambiguous
- crosses_formatting
- other_page
- not_a_suggestion
description: Why not, when ok is false.
message:
type: string
warnings:
type: array
description: 'When ok is true: what applying it would break that the page marks. Applying still works; tell the owner first.'
items:
type: object
properties:
kind:
type: string
enum:
- drops_placeholder
- drops_kept
- over_limit
description: 'drops_placeholder: the new wording leaves out a placeholder or merge field such as [brand phone] or {first_name}. drops_kept: it changes words marked data-stacktree-keep. over_limit: the text it sits in would pass its data-stacktree-max character limit.'
message:
type: string
created_at:
type: integer
updated_at:
type: integer
nullable: true
resolved_at:
type: integer
nullable: true
resolved_note:
type: string
nullable: true
securitySchemes:
bearerApiKey:
type: http
scheme: bearer
bearerFormat: API key (stk_live_…)
description: 'Long-lived API key, created from app.stacktr.ee, bought over x402 at POST /provision, or minted headlessly via the RFC 8628 device-code flow (POST /api-keys/device-code). Pass as `Authorization: Bearer stk_live_…`. Accepted on every REST route AND on the MCP transport at POST /mcp.'
walletSignature:
type: apiKey
in: header
name: Authorization
description: 'Keyless auth for the wallet that PAID for a page (x402 pay-per-publish): POST /wallet-auth/challenge {"wallet":"0x…"}, personal_sign (EIP-191) the returned message with that wallet, then send `Authorization: Wallet challenge=WAUTH-…,sig=0x…`. Single-use, 5-minute TTL, EVM EOA only. Scope: PUT /sites/{id} on pages carrying that payer_wallet (adopted pages while the wallet stays account-linked).'
claimToken:
type: apiKey
in: header
name: Authorization
description: 'Keyless auth for an UNCLAIMED page, using the `claim_token` that page''s own publish response returned: send `Authorization: Claim <claim_token>`. Works on any rail (no wallet, no signature), which is what a Solana x402 payer and a free anonymous publisher have. Scope is deliberately that one page: PUT /sites/{idOrSlug} replaces its content, DELETE /sites/{idOrSlug} takes it down for good (an unclaimed page has no account to restore it to), and GET /sites/{idOrSlug}/activity reads whether it was opened. Never another page, never claiming or settings. It stops working the moment the page is claimed (claiming rotates the token into the account), when the page expires, and for a blocked actor. Anonymous updates are rate limited per IP (RateLimit headers on every response) and require a direct client connection. Treat the token as being as sensitive as the page: anyone holding it can replace the content behind a link already sent to a client.'
oauth2:
type: oauth2
description: OAuth 2.1 with PKCE + Dynamic Client Registration (RFC 7591). Used by claude.ai connectors and other agent runtimes.
flows:
authorizationCode:
authorizationUrl: https://api.stacktr.ee/oauth/authorize
tokenUrl: https://api.stacktr.ee/oauth/token
refreshUrl: https://api.stacktr.ee/oauth/token
scopes:
sites:read: List and read site metadata.
sites:write: Create, update, and delete sites.
externalDocs:
description: Human-readable docs
url: https://stacktr.ee/docs
x-service-info:
categories:
- web
- storage
docs:
homepage: https://stacktr.ee
apiReference: https://api.stacktr.ee/openapi.json
llms: https://stacktr.ee/llms.txt
x-discovery:
ownershipProofs:
- '0x3ff8b9344028603569a7eab333dc9e50c4b62a1056c0814dfcf109d30f2bb44841a0e694a1697db648082192a71ca3b76c7cee3d8c7c696c0ae1f38ef8a8996f1c'