ship-page Deploy API

The Deploy API from ship-page — 2 operation(s) for deploy.

GitHub OpenAPI

Operations 2

POST /deploy Deploy a drop (anonymous allowed) #
POST /deploy/{slug} Append files to an existing drop (subscribers) #

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/ship-page:ship-page-deploy-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

ship-page-deploy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ship.page Deploy API
  version: 1.0.0
  description: 'Throw HTML at an API, get an unguessable URL back. Anonymous deploys need no auth; account routes accept an sp_ API key or a Firebase ID token as a Bearer credential. Docs: https://ship.page/docs — agents start at https://ship.page/docs/agents. MCP server: POST https://ship.page/mcp.'
  contact:
    name: Bitgate, Inc.
    url: https://ship.page
    email: abuse@bitgate.com
servers:
- url: https://ship.page
security: []
tags:
- name: Deploy
paths:
  /deploy:
    post:
      operationId: deploy
      summary: Deploy a drop (anonymous allowed)
      description: 'Body format is picked by Content-Type: `text/html` (or any non-JSON/non-zip type) stores the raw body as index.html; `application/json` expects a files map; `application/zip` unpacks an archive (single root dir auto-stripped). Limits: 100 files/request anonymous+free, 10,000 paid; zip 25 MB free / 100 MB paid (4× decompression cap); non-zip bodies 10 MB. Rate: 10 deploys/min per IP anonymous and free, 120/min per account on paid plans; 429 responses carry Retry-After: 60. To password-protect a drop, send X-Ship-Password with encodeURIComponent(password) and an active paid Pro/Team credential. Never send a password in the query string or files body. Omitting the header on a live named redeploy preserves protection; recreating an expired or purged named drop requires sending the password again. A top-level JSON password property is rejected. The /_ship/ namespace is reserved and cannot be uploaded; an empty header is invalid. Protected reads return 401 until the visitor unlocks in a browser and are never cached. Password creation/rotation returns 503 if billing cannot be verified.'
      security:
      - {}
      - bearerAuth: []
      parameters:
      - name: X-Ship-Password
        in: header
        schema:
          type: string
          writeOnly: true
        description: 'Optional encodeURIComponent(password). Decoded password: 8-128 Unicode characters, at most 512 UTF-8 bytes. Requires an active paid Pro/Team account. Omit to preserve protection on a live named redeploy; use DELETE /drops/{slug}/password to remove it.'
      - name: ttl
        in: query
        schema:
          type: integer
          minimum: 60
        description: 'Drop lifetime in seconds. Anonymous default/max: 604800 (7 days). Signed-in free default/max: 2592000 (30 days). A larger value deploys at the max and the response carries a hint saying so. Subscribers may set any value and default to no expiry.'
      - name: name
        in: query
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{0,40}$
        description: Named drop (subscribers only). Stable alias scoped to the account; redeploying the same name replaces content and keeps the URL.
      - name: email
        in: query
        schema:
          type: string
          format: email
          maxLength: 254
        description: 'Anonymous deploys only: the one-time claim link is mailed to this address, so the drop stays recoverable if the claim_token from the response is lost. Echoed back as claim_email. Ignored for authenticated deploys.'
      - name: agent
        in: query
        schema:
          type: string
          maxLength: 64
        description: 'Name of the AI agent or app publishing the drop, e.g. chatgpt, claude, cursor. Stored trimmed and lowercased; empty counts as not sent. AI agents: this is required; e.g. ChatGPT, Claude, etc.'
      requestBody:
        required: true
        content:
          text/html:
            schema:
              type: string
            example: <h1>hello</h1>
          application/json:
            schema:
              $ref: '#/components/schemas/FilesBody'
          application/zip:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Drop deployed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeployResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Deploy
  /deploy/{slug}:
    post:
      operationId: appendToDrop
      summary: Append files to an existing drop (subscribers)
      description: Adds files to a drop you own, up to 10,000 files per drop in total. Same body formats as POST /deploy. Existing password protection is preserved. Password input via query or X-Ship-Password is rejected; use the owner password endpoints to rotate it.
      security:
      - bearerAuth: []
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          text/html:
            schema:
              type: string
          application/json:
            schema:
              $ref: '#/components/schemas/FilesBody'
          application/zip:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Files appended.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AppendResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '429':
          $ref: '#/components/responses/RateLimited'
      tags:
      - Deploy
components:
  schemas:
    Error:
      type: object
      required:
      - error
      - code
      properties:
        error:
          type: string
          description: Human-readable message.
        code:
          type: string
          description: Machine-stable error code — parse this, not `error`.
          enum:
          - bad_request
          - invalid_ttl
          - invalid_email
          - invalid_name
          - invalid_plan
          - invalid_zip
          - invalid_claim_token
          - file_cap_exceeded
          - zip_too_large
          - body_too_large
          - decompression_cap
          - auth_required
          - subscription_required
          - not_found
          - method_not_allowed
          - already_claimed
          - claim_conflict
          - restore_conflict
          - drop_expired
          - rate_limited
          - backend_unavailable
          - internal_error
          - expired
          - too_large
          - unsupported
          - busy
          - hash_mismatch
          - storage_full
          - unknown_blob
          - draft_changed
          - content_changed
          - publish_in_progress
          - publish_incomplete
          - blocked
          - missing
          - already_live
          - invalid_request
          - invalid_link_name
          - link_name_reserved
          - link_name_taken
          - link_exists
          - link_limit_reached
          - link_frozen
          - drop_not_found
          - not_saving
        hint:
          type: string
          description: Human-directed guidance. Agents should relay this to their user verbatim.
        upgrade_url:
          type: string
          format: uri
          description: Present when a plan upgrade resolves the failure.
        docs_url:
          type: string
          format: uri
          description: Relevant docs page, when one applies.
    DeployForms:
      type: object
      required:
      - saving
      - lines
      properties:
        saving:
          type: integer
          description: Forms saving responses right now.
        lines:
          type: array
          items:
            $ref: '#/components/schemas/DeployFormLine'
          description: One line per form a visitor fills in. Search, login and payment forms aren't listed, nor forms without an email or phone field unless they were switched on.
    DeployFormLine:
      type: object
      required:
      - id
      - page
      - label
      - state
      properties:
        id:
          type: string
          description: The form's page and key, like index.html#contact.
        page:
          type: string
          description: The HTML file the form is on, without a leading slash.
        label:
          type: string
          description: The form's heading or its submit button text.
        state:
          type: string
          enum:
          - saving
          - claim
          - script_off
          - own_code
          - external
          - mailto
          - ignored
          description: 'saving: responses are saved for the owner. claim: saving starts once an account claims the drop. script_off: the form needs the forms script, which is off on this drop (paid drops start with it off); turn it on with PUT /drops/{slug}/forms. own_code: the page sends the form itself, so it''s left alone. external: it posts to another site. mailto: it opens an email. ignored: it carries data-ship-ignore.'
    AppendResponse:
      type: object
      required:
      - slug
      - url
      - files
      - total_files
      - plan
      - expires_at
      properties:
        slug:
          type: string
        url:
          type: string
          format: uri
        files:
          type: array
          items:
            type: string
          description: Files added by this request.
        total_files:
          type: integer
          description: Total files in the drop after appending (cap 10,000).
        plan:
          type: string
          enum:
          - free
          - pro
          - team
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
    DeployResponse:
      type: object
      required:
      - slug
      - url
      - files
      - plan
      - expires_at
      - password_protected
      properties:
        slug:
          type: string
          example: vast-juice-c2dse
        url:
          type: string
          format: uri
          example: https://vast-juice-c2dse.ship.place/
        files:
          type: array
          items:
            type: string
        plan:
          type: string
          enum:
          - free
          - pro
          - team
        expires_at:
          type:
          - string
          - 'null'
          format: date-time
          description: Null for drops that never expire (subscribers).
        name:
          type: string
          description: Present when ?name= was used.
        replaced:
          type: boolean
          description: Present when ?name= was used; true if an existing named drop was replaced.
        password_protected:
          type: boolean
          description: Whether visitors must unlock the drop with a password.
        claim_token:
          type: string
          pattern: ^spc_[a-z0-9]{24}$
          description: One-time claim token, present only on anonymous deploys and shown exactly once. Anyone holding it can attach the drop to an account via POST /drops/{slug}/claim.
        claim_url:
          type: string
          format: uri
          description: 'Present on anonymous API and MCP deploys: a browser link that saves the drop to whichever account opens it. It carries the claim token, so keep it private.'
        next_step:
          type: string
          description: 'Present on API and MCP deploys that expire: when the page expires and how to keep it online, written to be passed on to the person the page was made for.'
        hint:
          type: string
          description: Present when the requested ttl was over the plan's maximum; the drop got the maximum instead.
        claim_email:
          type: string
          format: email
          description: Present when ?email= was accepted on an anonymous deploy; the claim link was mailed to this address.
        forms:
          oneOf:
          - $ref: '#/components/schemas/DeployForms'
          - type: 'null'
          description: What happens to the forms on the uploaded pages, found at upload with nothing to set up. Null or absent when there are none.
    FilesBody:
      type: object
      required:
      - files
      properties:
        files:
          type: object
          description: 'Path → content map. Values are a string, or { encoding: "base64", content: string } for binary.'
          additionalProperties:
            oneOf:
            - type: string
            - type: object
              required:
              - encoding
              - content
              properties:
                encoding:
                  type: string
                  const: base64
                content:
                  type: string
  responses:
    Unauthorized:
      description: Missing or invalid credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Bad request — unparseable body, bad paths, invalid ttl/name, per-request file cap, invalid zip.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PayloadTooLarge:
      description: Payload too large — a non-zip body over 10 MB, a zip over the plan cap or past its 4× decompression ceiling, or the 10,000-file drop total.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: Required backend unavailable. Password creation and rotation fail closed when billing cannot be verified; retry later.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found (also returned for resources owned by someone else).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PaymentRequired:
      description: Subscriber-gated feature on a free account. The body's `hint` and `upgrade_url` tell the user how to upgrade.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limited. Back off per the Retry-After header (60s).
      headers:
        Retry-After:
          schema:
            type: integer
            example: 60
          description: Seconds to wait before retrying.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An sp_… API key (minted via POST /keys or the dashboard) or a Firebase ID token.