ship-page Domains API

The Domains API from ship-page — 3 operation(s) for domains.

GitHub OpenAPI

Operations 5

GET /domains List your custom domains #
POST /domains Add a custom domain (Team plan) #
POST /domains/{id}/check Check a custom domain's DNS and certificate now #
PATCH /domains/{id} Point a custom domain at another drop #
DELETE /domains/{id} Remove a custom domain #

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-domains-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-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ship.page Domains 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: Domains
paths:
  /domains:
    get:
      operationId: listDomains
      summary: List your custom domains
      description: 'Every domain on the account that hasn''t been dismissed, newest first. `limit` is 10 with an active Team plan, else 0; `bareDomains` says whether bare domains (example.com) can be added right now. Works without Team, so a lapsed account can still see and remove its domains. Error codes: 403 domain_forbidden (custom domains aren''t open to this account and it holds none); 503 domains_unavailable, backend_unavailable.'
      security:
      - bearerAuth: []
      responses:
        '200':
          description: The account's domains.
          content:
            application/json:
              schema:
                type: object
                required:
                - domains
                - limit
                - bareDomains
                properties:
                  domains:
                    type: array
                    items:
                      $ref: '#/components/schemas/CustomDomain'
                  limit:
                    type: integer
                    example: 10
                  bareDomains:
                    type: boolean
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Domains
    post:
      operationId: addDomain
      summary: Add a custom domain (Team plan)
      description: 'Connects a domain you own to a live drop on your account. A subdomain (docs.example.com) needs one CNAME record. A registered domain lives on www with a CNAME, and its bare name gets A and AAAA records; the name you typed is the main address and the other redirects to it. The response lists the exact records. The domain goes live once DNS proves the CNAME and the certificate is issued: poll POST /domains/{id}/check. Up to 10 per account, and any number can show the same drop. Adding a domain you already have returns it with 200. Error codes: 400 invalid_request; 402 subscription_required; 403 domain_forbidden; 404 not_found (no live drop with that slug on this account); 409 domain_limit; 422 domain_invalid; 429 rate_limited; 503 domains_unavailable, backend_unavailable.'
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - domain
              - slug
              properties:
                domain:
                  type: string
                  maxLength: 300
                  example: docs.example.com
                slug:
                  type: string
                  description: Drop slug or drop URL to show.
                  example: vivid-otter-a1b2c
      responses:
        '200':
          $ref: '#/components/responses/Domain'
        '201':
          $ref: '#/components/responses/Domain'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '422':
          $ref: '#/components/responses/Unprocessable'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Domains
  /domains/{id}/check:
    post:
      operationId: checkDomain
      summary: Check a custom domain's DNS and certificate now
      description: 'Looks up DNS and the certificate right away instead of waiting for the next background check, and returns the domain as it stands. Cloudflare is asked at most once per 10 seconds per domain. Error codes: 404 not_found; 429 rate_limited; 503 domains_unavailable, backend_unavailable.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          $ref: '#/components/responses/Domain'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Domains
  /domains/{id}:
    patch:
      operationId: pointDomain
      summary: Point a custom domain at another drop
      description: 'Visitors see the new drop within about 10 seconds; the drops themselves are untouched. Requires an active Team plan. Error codes: 400 invalid_request; 402 subscription_required; 404 not_found (no such domain, or no live drop with that slug on this account); 409 domain_frozen; 429 rate_limited; 503 domains_unavailable, backend_unavailable.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - slug
              properties:
                slug:
                  type: string
                  description: Drop slug or drop URL to show.
                  example: quiet-heron-k3m9p
      responses:
        '200':
          $ref: '#/components/responses/Domain'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Domains
    delete:
      operationId: removeDomain
      summary: Remove a custom domain
      description: 'Disconnects the domain and takes it off the list; an ended domain is just dismissed. Works without an active Team plan. Error codes: 404 not_found; 409 domain_frozen (taken down with its page); 429 rate_limited; 503 domains_unavailable, backend_unavailable.'
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Domain removed.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/Unavailable'
      tags:
      - Domains
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.
    CustomDomain:
      type: object
      required:
      - id
      - host
      - address
      - apex
      - apexMain
      - slug
      - status
      - records
      - problem
      - message
      - apexOk
      - apexReady
      - apexProblem
      - apexMessage
      - frozen
      - pausesAt
      - endsAt
      - dnsHost
      - checkedAt
      - liveAt
      - createdAt
      properties:
        id:
          type: string
          format: uuid
        host:
          type: string
          description: The name the CNAME goes on; www.<domain> for a registered domain.
          example: docs.example.com
        address:
          type: string
          description: Where the drop lives; the other name of a bare domain redirects here.
          example: docs.example.com
        apex:
          type: boolean
          description: 'A registered domain: the bare name is served through A and AAAA records.'
        apexMain:
          type: boolean
          description: The bare name is the main address and www redirects to it.
        slug:
          type:
          - string
          - 'null'
          description: The drop it shows; null once that drop is deleted.
        status:
          type: string
          enum:
          - waiting
          - securing
          - live
          - moved
          - removed
        records:
          type: array
          description: The DNS records to set, while the domain is active.
          items:
            type: object
            required:
            - type
            - name
            - value
            properties:
              type:
                type: string
                enum:
                - CNAME
                - A
                - AAAA
              name:
                type: string
                description: Relative to the zone; @ is the zone itself.
                example: docs
              value:
                type: string
                example: 4k5v4qbhn3.pagedns.com
        problem:
          type:
          - string
          - 'null'
          description: Why it isn't live yet, or why it ended.
        message:
          type:
          - string
          - 'null'
          description: The problem in a sentence.
        apexOk:
          type:
          - boolean
          - 'null'
          description: Whether the bare name's A and AAAA records are right; null until checked or for subdomains.
        apexReady:
          type:
          - boolean
          - 'null'
          description: Whether the bare name is served; null for subdomains.
        apexProblem:
          type:
          - string
          - 'null'
        apexMessage:
          type:
          - string
          - 'null'
        frozen:
          type: boolean
          description: 'Taken down with its drop: shows the removed page and can''t be changed.'
        pausesAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When it stops showing the drop after the Team plan ended; null while Team is active.
        endsAt:
          type:
          - string
          - 'null'
          format: date-time
          description: When it is disconnected after the Team plan ended; null while Team is active.
        dnsHost:
          type:
          - object
          - 'null'
          description: Where the domain's DNS is hosted, when we recognise it.
          required:
          - name
          - url
          - cloudflare
          properties:
            name:
              type: string
            url:
              type:
              - string
              - 'null'
              format: uri
            cloudflare:
              type: boolean
        checkedAt:
          type:
          - string
          - 'null'
          format: date-time
        liveAt:
          type:
          - string
          - 'null'
          format: date-time
        createdAt:
          type: string
          format: date-time
  responses:
    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'
    Unauthorized:
      description: Missing or invalid credential.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Domain:
      description: The custom domain as it stands.
      content:
        application/json:
          schema:
            type: object
            required:
            - domain
            properties:
              domain:
                $ref: '#/components/schemas/CustomDomain'
    Forbidden:
      description: Not open to this account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Conflict:
      description: Conflict with the resource's current state; the body's `code` says which.
      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'
    Unprocessable:
      description: Well-formed but unusable input; the body's `code` says which.
      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.