Bump.sh Previews API

The Previews API from Bump.sh — 2 operation(s) for previews.

Operations 2

POST /previews Create a Preview
PUT /previews/{preview_id} Update an Existing Preview

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/bump-sh-previews-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

bump-sh-previews-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bump.sh Previews API
  description: 'This is the official Bump.sh API documentation.  Obviously created

    with Bump.sh.


    The Bump.sh API is a REST API. It enables you to [create, update](#operation-post-versions)

    or [preview](#operation-post-previews) your API(s) documentation,

    [create stand-alone documentation diffs](#operation-post-diffs) or

    [validate a documentation definition](#operation-post-validations)

    (currently in OpenAPI or AsyncAPI).


    Our [webhook](#webhook-documentation-change) also lets you get

    notifications every time a change is introduced in your API.

    '
  version: '1.0'
servers:
- url: https://bump.sh/api/v1
  name: Production
security:
- Authorization token: []
- Basic token: []
tags:
- name: Previews
paths:
  /previews:
    post:
      tags:
      - Previews
      summary: Create a Preview
      description: 'Create a preview for a given documentation file. The preview will have a unique temporary URL, and will be active for 30 minutes.

        '
      security: []
      requestBody:
        $ref: '#/components/requestBodies/Preview'
      responses:
        '201':
          summary: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Preview'
        '422':
          $ref: '#/components/responses/InvalidDefinition'
  /previews/{preview_id}:
    put:
      tags:
      - Previews
      summary: Update an Existing Preview
      description: 'Update a preview with the given documentation file. The preview will stay active for 30 minutes after the last update.

        '
      security: []
      parameters:
      - in: path
        name: preview_id
        schema:
          type: string
        required: true
        description: UUID of an existing preview you wish to update.
      requestBody:
        $ref: '#/components/requestBodies/Preview'
      responses:
        '200':
          summary: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Preview'
        '422':
          $ref: '#/components/responses/InvalidDefinition'
components:
  schemas:
    Reference:
      type: object
      properties:
        location:
          type: string
          description: Location of the external reference as it's called from `definition`, without the relative path (the part after `#/`). Can be an URL of a file system path.
          example: https://example.com/api/models/pet.yml
        content:
          type: string
          description: Content of the external reference, as a string.
    Preview:
      type: object
      properties:
        definition:
          writeOnly: true
          type: string
          description: '<small>==**REQUIRED**==</small> if `url` is not present.


            Serialized definition. This should be an OpenAPI 2.x, 3.x

            or AsyncAPI 2.x file serialized as a string, in YAML or

            JSON.

            '
          example: '{"openapi": "3.0", "info": { "title": … }}

            '
        references:
          writeOnly: true
          type: array
          description: Import external references used by `definition`. It's usually resources not accessible by Bump.sh servers, like local files or internal URLs.
          items:
            $ref: '#/components/schemas/Reference'
        url:
          writeOnly: true
          type: string
          format: uri
          description: '<small>==**REQUIRED**==</small> if `definition` is not present.


            Target definition URL. It should be accessible through

            HTTP by Bump.sh servers.

            '
        id:
          readOnly: true
          type: string
          description: 'Unique id for the preview URL: `https://bump.sh/preview/:id`.'
          example: 3ef8f52f-9056-4113-840e-2f7183b90e06
        expires_at:
          readOnly: true
          type: string
          format: date-time
          description: Preview expiration date and time.
          example: 2010-04-14 17:05:00+01:00
        public_url:
          readOnly: true
          type: string
          description: The public URL where the preview will be visible.
          example: https://bump.sh/preview/3ef8f52f-9056-4113-840e-2f7183b90e06
    Error:
      properties:
        message:
          type: string
          description: Human readable error message.
          example: Invalid definition file
        errors:
          type: object
          description: Hash of invalid attributes with their error messages.
          example:
            raw_definition:
            - The property '#/paths//docs/{:id}/validations/post' contains additional properties ["yolo"] outside of the schema when none are allowed
  requestBodies:
    Preview:
      description: The preview creation request object
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Preview'
  responses:
    InvalidDefinition:
      summary: Definition is not valid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Authorization_token:
      type: http
      scheme: token
    Basic_token:
      type: http
      scheme: basic
      deprecated: true
x-topics:
- title: Authentication
  content:
    $ref: ./authentication.md
  example:
    $ref: ./authentication-example.md