Stacktree Sign Off API

What the people named on an approval request approved, and the words they approved.

GitHub OpenAPI

Operations 2

GET /sites/{idOrSlug}/approved-copy The words each section was approved in, with a version stamp #
POST /sites/{idOrSlug}/approved-copy/check Check text against the approved words #

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-sign-off-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-sign-off-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stacktree Sign Off 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: Sign-off
  description: What the people named on an approval request approved, and the words they approved.
paths:
  /sites/{idOrSlug}/approved-copy:
    parameters:
    - name: idOrSlug
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Sign-off
      summary: The words each section was approved in, with a version stamp
      description: 'For one approval request (POST /sites/{idOrSlug}/approvals, the request_approval tool), the approved words of each section of the page, or of the whole page when it has no sections. A section is approved when every person named on the request approved the same words through their own link, on that section or on the whole page, whichever answer is newer. Its `text` is those words after its heading. When the section changed after it was approved, the words are read from the page''s version history (the 20 newest versions) and `from` names the version; when they are not there any more, `text` is null and `reason` says so. The wording on the page now is never reported as approved for a section that changed. Sections not approved are listed with their status, who they wait on, and no text. `markdown` is the same as a document for a file or a pull request: a stamp line, then each heading and its words, with no page link in it. Owner-authed, read only. A record of who approved which words and when, not a legal e-signature.'
      security:
      - bearerApiKey: []
      - oauth2:
        - sites:read
      parameters:
      - name: approval_id
        in: query
        required: false
        schema:
          type: string
        description: The request (starts apr_). Defaults to the newest request on the page.
      responses:
        '200':
          description: The approved copy.
          content:
            application/json:
              schema:
                type: object
                required:
                - page
                - approval
                - version
                - sections
                - markdown
                properties:
                  page:
                    type: object
                    properties:
                      id:
                        type: string
                      title:
                        type: string
                        nullable: true
                      url:
                        type: string
                  approval:
                    type: object
                    properties:
                      id:
                        type: string
                      created_at:
                        type: integer
                      state:
                        type: string
                        enum:
                        - approved
                        - changes_requested
                        - pending
                        description: As GET /approvals/{id} has it, for the page as it is now.
                      summary:
                        type: string
                      note:
                        type: string
                        nullable: true
                  version:
                    type: object
                    properties:
                      version:
                        type: string
                        description: '`live`, or the id of an earlier version (GET /sites/{idOrSlug}/versions).'
                      sha256:
                        type: string
                        description: SHA-256 of that index.html.
                      short:
                        type: string
                        description: Its first 8 hex, for people.
                      updated_at:
                        type: integer
                        nullable: true
                        description: When that content was published. For an earlier version, known when someone answered on exactly it.
                      replaced_at:
                        type: integer
                        nullable: true
                        description: 'For an earlier version: when the update that replaced it happened.'
                    description: The page as it is now.
                  exported_at:
                    type: integer
                  scope:
                    type: string
                    enum:
                    - sections
                    - page
                    description: '`page` when the page has no sections: then `sections` holds one entry, key `_page`.'
                  summary:
                    type: string
                  sections:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          description: The section key sign-off uses, or `_page` for the whole page.
                        title:
                          type: string
                        heading:
                          type: string
                          nullable: true
                          description: The heading's words, when the section opens with one.
                        on_page:
                          type: boolean
                          description: false for a section someone answered that the page no longer has.
                        status:
                          type: string
                          enum:
                          - approved
                          - changes_requested
                          - pending
                        current:
                          type: boolean
                          nullable: true
                          description: 'Approved sections: the approved words are the words on the page now.'
                        hash:
                          type: string
                          nullable: true
                          description: 'What the approvals recorded: the section''s 16-hex word hash, or the SHA-256 of index.html for the whole page.'
                        text:
                          type: string
                          nullable: true
                          description: The approved words after the heading. null unless approved and readable.
                        from:
                          type: object
                          properties:
                            version:
                              type: string
                              description: '`live`, or the id of an earlier version (GET /sites/{idOrSlug}/versions).'
                            sha256:
                              type: string
                              description: SHA-256 of that index.html.
                            short:
                              type: string
                              description: Its first 8 hex, for people.
                            updated_at:
                              type: integer
                              nullable: true
                              description: When that content was published. For an earlier version, known when someone answered on exactly it.
                            replaced_at:
                              type: integer
                              nullable: true
                              description: 'For an earlier version: when the update that replaced it happened.'
                          nullable: true
                          description: The version of the page the text was read from.
                        approved_by:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              email:
                                type: string
                                nullable: true
                              email_verified:
                                type: boolean
                              via_link:
                                type: string
                                nullable: true
                              at:
                                type: integer
                              scope:
                                type: string
                                enum:
                                - section
                                - page
                              current:
                                type: boolean
                              reference:
                                type: string
                              note:
                                type: string
                                nullable: true
                        changes_requested_by:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              note:
                                type: string
                                nullable: true
                              at:
                                type: integer
                              scope:
                                type: string
                                enum:
                                - section
                                - page
                              current:
                                type: boolean
                        waiting_on:
                          type: array
                          items:
                            type: string
                        reason:
                          type: string
                          nullable: true
                  markdown:
                    type: string
                  disclaimer:
                    type: string
        '400':
          description: 'e2e_site: an end-to-end encrypted page, whose words the server cannot read.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No such page on this account (not found), no request on it (no_approval), no request with that id on it (approval_not_found), or no index.html (no_content).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getSitesByIdOrSlugApprovedCopy
  /sites/{idOrSlug}/approved-copy/check:
    parameters:
    - name: idOrSlug
      in: path
      required: true
      schema:
        type: string
    post:
      tags:
      - Sign-off
      summary: Check text against the approved words
      description: 'Compares copy you have (a source file, a template, a rendered email) with the approved words from GET /sites/{idOrSlug}/approved-copy. `text` is searched for every approved section; `sections` compares the text given for each key with that section. Each approved section comes back `exact`, `differs` (with `difference`: where the words part ways, the approved words and what was found) or `missing`. Sections not approved, or whose approved words could not be read, are not compared (`match` null, with a `reason`). Words are compared after the normalizing the response lists in `normalized`: tags, entities, source-code escapes, whitespace and curly quotes. Placeholders such as {first_name} are part of the approved words and compared as written. `exact` says the visible words match; it does not cover markup, links or images. At most 500 KB of copy per call (413 too_large). Owner-authed. A POST for the size of the body; it reads and stores nothing.'
      security:
      - bearerApiKey: []
      - oauth2:
        - sites:read
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                approval_id:
                  type: string
                  description: Defaults to the newest request on the page.
                text:
                  type: string
                  description: Copy to search for every approved section.
                sections:
                  type: object
                  additionalProperties:
                    type: string
                  maxProperties: 100
                  description: Section key to the text that should carry its approved words. The heading may be included or left out.
      responses:
        '200':
          description: One result per section.
          content:
            application/json:
              schema:
                type: object
                properties:
                  verdict:
                    type: string
                    enum:
                    - all_exact
                    - differences
                    - incomplete
                    description: '`all_exact`: every section on the page is approved and matched. `differences`: an approved section differs or is missing. `incomplete`: nothing differs, but not every section could be compared.'
                  summary:
                    type: string
                  counts:
                    type: object
                    properties:
                      exact:
                        type: integer
                      differs:
                        type: integer
                      missing:
                        type: integer
                      not_compared:
                        type: integer
                  version:
                    type: object
                    properties:
                      version:
                        type: string
                        description: '`live`, or the id of an earlier version (GET /sites/{idOrSlug}/versions).'
                      sha256:
                        type: string
                        description: SHA-256 of that index.html.
                      short:
                        type: string
                        description: Its first 8 hex, for people.
                      updated_at:
                        type: integer
                        nullable: true
                        description: When that content was published. For an earlier version, known when someone answered on exactly it.
                      replaced_at:
                        type: integer
                        nullable: true
                        description: 'For an earlier version: when the update that replaced it happened.'
                  sections:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        title:
                          type: string
                        status:
                          type: string
                          enum:
                          - approved
                          - changes_requested
                          - pending
                        match:
                          type: string
                          enum:
                          - exact
                          - differs
                          - missing
                          nullable: true
                        compared:
                          type: string
                          enum:
                          - section
                          - text
                          nullable: true
                        difference:
                          type: object
                          nullable: true
                          properties:
                            at_word:
                              type: integer
                              description: Where `expected` starts, counting the approved words from 1.
                            before:
                              type: string
                            expected:
                              type: string
                            found:
                              type: string
                            after:
                              type: string
                              description: Approved words found again after the change.
                        quotes_folded:
                          type: boolean
                          description: The match needed curly and straight quotes treated as the same.
                        from:
                          type: object
                          properties:
                            version:
                              type: string
                              description: '`live`, or the id of an earlier version (GET /sites/{idOrSlug}/versions).'
                            sha256:
                              type: string
                              description: SHA-256 of that index.html.
                            short:
                              type: string
                              description: Its first 8 hex, for people.
                            updated_at:
                              type: integer
                              nullable: true
                              description: When that content was published. For an earlier version, known when someone answered on exactly it.
                            replaced_at:
                              type: integer
                              nullable: true
                              description: 'For an earlier version: when the update that replaced it happened.'
                          nullable: true
                        reason:
                          type: string
                          nullable: true
                  unknown_sections:
                    type: array
                    items:
                      type: string
                    description: Keys sent that are not sections of this page.
                  normalized:
                    type: array
                    items:
                      type: string
                  proves:
                    type: string
                  disclaimer:
                    type: string
        '400':
          description: Not JSON, nothing_to_check, invalid_text, invalid_sections, too_many_sections, or e2e_site.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: As GET /sites/{idOrSlug}/approved-copy.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: 'too_large: more than 500 KB of copy.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postSitesByIdOrSlugApprovedCopyCheck
components:
  responses:
    Unauthorized:
      description: Missing or invalid credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Stable machine-readable error code.
        error_description:
          type: string
          description: Human-readable detail (optional).
      example:
        error: auth required
  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'