Percher Versions API

The Versions API from Percher — 8 operation(s) for versions.

GitHub OpenAPI

Operations 8

GET /apps/{appRef}/versions List deploy history #
POST /apps/{appRef}/rollback Rollback to previous version #
GET /apps/{appRef}/rollback/last-good Resolve the last known-good version to roll back to #
GET /apps/{appRef}/versions/{sha}/build-log Get build log for specific version #
GET /apps/{appRef}/versions/{sha}/config Get percher.toml for specific version #
GET /apps/{appRef}/versions/{sha}/manifest Get deploy manifest for specific version #
GET /apps/{appRef}/versions/{sha}/files List a version's files with sha256 (owner only) #
GET /apps/{appRef}/versions/{sha}/file Read one file at a version, max 1 MiB (owner only) #

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/percher-app:percher-app-versions-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

percher-app-versions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Percher Versions API
  version: 1.0.0
  description: AI-native hosting platform. Deploy apps via CLI, MCP, or API — live at name.percher.run.
  contact:
    url: https://percher.app
servers:
- url: https://api.percher.run
  description: Production
- url: http://localhost:3000
  description: Local development
tags:
- name: Versions
paths:
  /apps/{appRef}/versions:
    get:
      tags:
      - Versions
      summary: List deploy history
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deploy history (commits)
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Version'
      operationId: getAppsByAppRefVersions
      x-operation-id-source: derived
  /apps/{appRef}/rollback:
    post:
      tags:
      - Versions
      summary: Rollback to previous version
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                commitSha:
                  type: string
                  minLength: 1
                  description: A version sha, its deploy id, or the git sha it was built from.
              required:
              - commitSha
      responses:
        '202':
          description: Rollback queued
        '404':
          description: Commit not found
      operationId: postAppsByAppRefRollback
      x-operation-id-source: derived
  /apps/{appRef}/rollback/last-good:
    get:
      tags:
      - Versions
      summary: Resolve the last known-good version to roll back to
      description: Returns the most recent PRIOR version that reached live and was not crash-looped or auto-suspended afterwards. The current live version is skipped (rolling back to itself is a no-op).
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Last known-good version
          content:
            application/json:
              schema:
                type: object
                properties:
                  commitSha:
                    type: string
                  deployId:
                    type: string
                  note:
                    type: string
                    nullable: true
                  finishedAt:
                    type: string
                    format: date-time
                    nullable: true
        '404':
          description: No qualifying prior version (code NO_LAST_GOOD)
      operationId: getAppsByAppRefRollbackLastGood
      x-operation-id-source: derived
  /apps/{appRef}/versions/{sha}/build-log:
    get:
      tags:
      - Versions
      summary: Get build log for specific version
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      - name: sha
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Build log with status
        '404':
          description: Not found
      operationId: getAppsByAppRefVersionsByShaBuildLog
      x-operation-id-source: derived
  /apps/{appRef}/versions/{sha}/config:
    get:
      tags:
      - Versions
      summary: Get percher.toml for specific version
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      - name: sha
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: percher.toml as plain text
        '404':
          description: Not found
      operationId: getAppsByAppRefVersionsByShaConfig
      x-operation-id-source: derived
  /apps/{appRef}/versions/{sha}/manifest:
    get:
      tags:
      - Versions
      summary: Get deploy manifest for specific version
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      - name: sha
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Manifest JSON
        '404':
          description: Not found
      operationId: getAppsByAppRefVersionsByShaManifest
      x-operation-id-source: derived
  /apps/{appRef}/versions/{sha}/files:
    get:
      tags:
      - Versions
      summary: List a version's files with sha256 (owner only)
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      - name: sha
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Files with path, size and sha256
        '404':
          description: Not found
        '413':
          description: Too many files or bytes to hash
        '422':
          description: Version stored as one archive
      operationId: getAppsByAppRefVersionsByShaFiles
      x-operation-id-source: derived
  /apps/{appRef}/versions/{sha}/file:
    get:
      tags:
      - Versions
      summary: Read one file at a version, max 1 MiB (owner only)
      security:
      - bearer: []
      parameters:
      - name: appRef
        in: path
        required: true
        schema:
          type: string
      - name: sha
        in: path
        required: true
        schema:
          type: string
      - name: path
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: File content as utf8 or base64, with sha256
        '400':
          description: Invalid path
        '403':
          description: Secret-named file
        '404':
          description: Not found
        '413':
          description: File over 1 MiB
        '422':
          description: Not a regular file, or version stored as one archive
      operationId: getAppsByAppRefVersionsByShaFile
      x-operation-id-source: derived
components:
  schemas:
    Version:
      type: object
      properties:
        sha:
          type: string
        message:
          type: string
        timestamp:
          type: string
          format: date-time
        deployId:
          type: string
          nullable: true
        remoteSha:
          type: string
          nullable: true
        note:
          type: string
          nullable: true
  securitySchemes:
    exportPreparation:
      type: http
      scheme: bearer
      bearerFormat: pce_<43 base64url characters>
      description: Separate preparation capability. An account API/OAuth token or operation ID is not a preparation credential.
    bearer:
      type: http
      scheme: bearer
      description: API token from `percher login`
    internalSecret:
      type: apiKey
      in: header
      name: X-Internal-Secret
      description: Internal service secret