PasteHTML API

PasteHTML API as documented publicly: 6 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

GitHub OpenAPI

Operations 6

GET / GET / #
GET /api/folders GET /api/folders #
POST /api/folders POST /api/folders #
GET /api/pastes GET /api/pastes #
POST /api/pastes Publish #
PATCH /api/pastes/{token} PATCH /api/pastes/{token} #

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/pastehtml-dev:pastehtml-dev-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

pastehtml-dev-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: PasteHTML API
  version: '2026-11-20'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-20: 6 operation(s) read from 6 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; PasteHTML has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 1
    pages-with-code: 6
    pages-read: 6
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-20'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://api.pastehtml.dev
  - https://api.pastehtml.dev/locale/ar
  - https://api.pastehtml.dev/llms.txt
  - https://api.pastehtml.dev/making-of
  - https://api.pastehtml.dev/lock-it-up
  - https://api.pastehtml.dev/mark-it-down
servers:
- url: https://pastehtml.dev
paths:
  /:
    get:
      operationId: get
      tags:
      - Api
      summary: GET /
      x-source: https://api.pastehtml.dev/making-of
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -F [email protected] pastehtml.dev/api/pastes → share link),\n paste-from-clipboard with ⌘V (including copied files from\
          \ Finder, after Ali caught that one),\n <title> extraction so links read like documents, and rate limits + SSL + host protection\n for\
          \ production. \n ⏱ 13:38–13:55 · ≈17 min agent API ⌘V publishing title extraction hardening \n A \n ALI \n Should agents be able to\
          \ update pastes? I w"
  /api/folders:
    get:
      operationId: get_api_folders
      tags:
      - Api
      summary: GET /api/folders
      x-source: https://api.pastehtml.dev/llms.txt
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -H "Authorization: Bearer pht_..." https://pastehtml.dev/api/folders'
    post:
      operationId: post_api_folders
      tags:
      - Api
      summary: POST /api/folders
      x-source: https://api.pastehtml.dev/llms.txt
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST -H "Authorization: Bearer pht_..."  -d "folder[name]=Roadmap" https://pastehtml.dev/api/folders'
  /api/pastes:
    get:
      operationId: get_api_pastes
      tags:
      - Api
      summary: GET /api/pastes
      x-source: https://api.pastehtml.dev
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -F \" [email protected] \" https://api.pastehtml.dev/api/pastes \n Full agent instructions live at pastehtml.dev/llms.txt\
          \ — just tell your agent to publish here.\n Straight from the blog \n The Making Of \n How a human and an AI built and shipped this\
          \ whole site in a single day. \n Lock It Up \n Keeping a shared page private, and where end-to-end encryption fits in. \n Mark It Down\
          \ \n From a Markdown d"
    post:
      operationId: post_api_pastes
      tags:
      - Api
      summary: Publish
      x-source: https://api.pastehtml.dev/llms.txt
      parameters:
      - name: file
        in: query
        required: false
        schema:
          type: string
        description: Multipart file upload (HTML or Markdown).
      - name: filename
        in: query
        required: false
        schema:
          type: string
        description: Optional filename for raw body uploads; defaults to untitled.html.
      - name: password
        in: query
        required: false
        schema:
          type: string
        description: Password to protect the paste (anonymous publishes only).
      - name: custom_subdomain
        in: query
        required: false
        schema:
          type: string
        description: Requested custom subdomain (requires an account API key).
      - name: folder_name
        in: query
        required: false
        schema:
          type: string
        description: Name of a folder to place the paste into (account‑key publishes).
      - name: folder_id
        in: query
        required: false
        schema:
          type: string
        description: ID of a folder to place the paste into (account‑key publishes).
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiPastesRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiPastesResponse'
      x-evidence:
        kind: documentation
  /api/pastes/{token}:
    patch:
      operationId: patch_api_pastes_token
      tags:
      - Api
      summary: PATCH /api/pastes/{token}
      x-source: https://api.pastehtml.dev/llms.txt
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X PATCH -H "Authorization: Bearer <update_token>"  --data-binary @plan.html -H "Content-Type: text/html"  https://pastehtml.dev/api/pastes/<token>'
components:
  schemas:
    PostApiPastesRequest:
      type: object
      properties:
        file:
          type: string
          description: HTML or Markdown file uploaded via multipart/form-data.
        raw_body:
          type: string
          description: Raw HTML or Markdown content sent as the request body.
    PostApiPastesResponse:
      type: object
      properties:
        token:
          type: string
          description: The paste's public ID.
        title:
          type: string
          description: Extracted from the document's <title>.
        custom_subdomain:
          type: string
          description: The claimed custom subdomain, if any.
        password_protected:
          type: boolean
          description: Whether the paste is password protected.
        views_count:
          type: integer
          description: Number of views.
        folder:
          type: object
          description: 'Folder info {"id": number, "name": string} if placed in a folder.'
        owner:
          type: object
          description: 'Owner info {"id": number} for account‑owned pastes.'
        account_paste:
          type: boolean
          description: True if the paste belongs to an account.
        live_url:
          type: string
          description: 'Share link: the document on its own isolated origin.'
        url:
          type: string
          description: Inspector page URL.
        raw_url:
          type: string
          description: Exact bytes of the paste as text/plain.
        render_url:
          type: string
          description: Same bytes served as text/html.
        markdown_url:
          type: string
          description: Paste converted to Markdown (text/markdown).
        update_token:
          type: string
          description: Secret token for anonymous paste updates.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api